Skip to content

Commit

Permalink
fix final test, don't hardcode use of WCF DomainClient
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel-Svensson committed Jun 5, 2024
1 parent 1db4ce2 commit 403bbf9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ public void Entity_RejectChanges_ParentAssociationRestored()
List<Employee> employeeList = new List<Employee>();
ConfigurableEntityContainer container = new ConfigurableEntityContainer();
container.CreateSet<Employee>(EntitySetOperations.All);
ConfigurableDomainContext catalog = new ConfigurableDomainContext(new WebDomainClient<TestDomainServices.LTS.Catalog.ICatalogContract>(TestURIs.EFCore_Catalog), container);
var domainClient = DomainContext.DomainClientFactory.CreateDomainClient(typeof(TestDomainServices.LTS.Catalog.ICatalogContract), TestURIs.EFCore_Catalog, false);
ConfigurableDomainContext catalog = new ConfigurableDomainContext(domainClient, container);

var load = catalog.Load(catalog.GetEntityQuery<Employee>("GetEmployees"), throwOnError:false);
this.EnqueueCompletion(() => load);
Expand Down

0 comments on commit 403bbf9

Please sign in to comment.