Esempio n. 1
0
 public void Can_depend_on_non_generic_options_when_only_one_context_with_default_service_provider()
 {
     using (SqlServerTestStore.GetNorthwindStore())
     {
         using var context = new NonGenericOptionsContext(new DbContextOptions <DbContext>());
         Assert.True(context.Customers.Any());
     }
 }
Esempio n. 2
0
 public async void Can_depend_on_non_generic_options_when_only_one_context_with_default_service_provider()
 {
     using (await SqlServerNorthwindContext.GetSharedStoreAsync())
     {
         using (var context = new NonGenericOptionsContext(new DbContextOptions <DbContext>()))
         {
             Assert.True(context.Customers.Any());
         }
     }
 }
 public void Can_depend_on_non_generic_options_when_only_one_context_with_default_service_provider()
 {
     using (SqlServerNorthwindContext.GetSharedStore())
     {
         using (var context = new NonGenericOptionsContext(new DbContextOptions<DbContext>()))
         {
             Assert.True(context.Customers.Any());
         }
     }
 }