public void ResourceModel_Update_WhenWorkflowXamlChanged_ExpectUpdatedResourceModelWithNewXaml()
{
//------------Setup for test--------------------------
// Setup();
var environmentModel = CreateMockEnvironment(new EventPublisher());
var resourceModel = new ResourceModel(environmentModel.Object);
const string category = "TestCat";
const string comment = "TestComment";
const string displayName = "DisplayName";
const string resourceName = "TestResourceName";
var id = Guid.NewGuid();
const string tags = "TestTags";
resourceModel.Category = category;
resourceModel.Comment = comment;
resourceModel.DisplayName = displayName;
resourceModel.ID = id;
resourceModel.ResourceName = resourceName;
resourceModel.Tags = tags;
resourceModel.WorkflowXaml = new StringBuilder("new xaml");
//------------Execute Test---------------------------
var updateResourceModel = new ResourceModel(environmentModel.Object) { WorkflowXaml = new StringBuilder("old xaml") };
updateResourceModel.Update(resourceModel);
//------------Assert Results-------------------------
Assert.AreEqual("new xaml", updateResourceModel.WorkflowXaml.ToString());
}