예제 #1
0
 public TestStore CreateTestStore(ITestStoreFactory testStoreFactory)
 {
     return(testStoreFactory.GetOrCreate(StoreName)
            .Initialize(
                AddServices(testStoreFactory.AddProviderServices(new ServiceCollection()))
                .BuildServiceProvider(validateScopes: true), CreateContext, c => { }, null));
 }
 public TestStore CreateTestStore(ITestStoreFactory testStoreFactory, string storeName, Action <CrossStoreContext> seed = null)
 => testStoreFactory.GetOrCreate(storeName)
 .Initialize(
     AddServices(testStoreFactory.AddProviderServices(new ServiceCollection())).BuildServiceProvider(validateScopes: true),
     CreateContext,
     seed);