Exemplo n.º 1
0
 public void Entity_set_names_are_taken_from_DbSet_property_names()
 {
     using (var context = new DbSetVariant())
     {
         Assert.Equal("UnicornProducts", GetEntitySetName(context, typeof(Product)));
         Assert.Equal("UnicornCategories", GetEntitySetName(context, typeof(Category)));
     }
 }
Exemplo n.º 2
0
 public void DbSet_properties_are_detected_and_initialized()
 {
     using (var context = new DbSetVariant())
     {
         Assert.NotNull(context.UnicornProducts);
         Assert.NotNull(context.UnicornCategories);
         context.Assert<Product>().IsInModel();
         context.Assert<Category>().IsInModel();
     }
 }