Skip to content
This repository has been archived by the owner on Jun 16, 2024. It is now read-only.

Commit

Permalink
Replace obsolete method
Browse files Browse the repository at this point in the history
  • Loading branch information
jordimontana82 committed Feb 7, 2019
1 parent 03af3b4 commit 01ec397
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public void When_an_entity_is_updated_with_an_empty_logical_name_an_exception_is
public void When_updating_an_entity_the_context_should_reflect_changes()
{
var context = new XrmFakedContext();
var service = context.GetFakedOrganizationService();
var service = context.GetOrganizationService();

var e = new Entity("account") { Id = Guid.Empty };
e["name"] = "Before update";
Expand Down Expand Up @@ -139,7 +139,7 @@ public void When_update_is_invoked_with_non_existing_entity_an_exception_is_thro

context.Initialize(data);

var service = context.GetFakedOrganizationService();
var service = context.GetOrganizationService();
var update = new Entity("account") { Id = nonExistingGuid };
var ex = Assert.Throws<FaultException<OrganizationServiceFault>>(() => service.Update(update));

Expand All @@ -158,7 +158,7 @@ public void When_updating_an_entity_an_unchanged_attribute_remains_the_same()
existingAccount
});

var service = context.GetFakedOrganizationService();
var service = context.GetOrganizationService();

//Create a new entity class to update the name
var accountToUpdate = new Account() { Id = existingAccount.Id };
Expand Down Expand Up @@ -238,7 +238,7 @@ public void When_updating_a_not_existing_entity_using_organization_context_excep

var existingAccount = new Account() { Id = Guid.NewGuid(), Name = "Super Great Customer", AccountNumber = "69" };

var service = context.GetFakedOrganizationService();
var service = context.GetOrganizationService();

using (var ctx = new OrganizationServiceContext(service))
{
Expand Down

0 comments on commit 01ec397

Please sign in to comment.