public void Entity_set_names_for_a_derived_type_come_from_the_base_type_DbSet_property_names() { using (var context = new SetOfDerivedTypeVariant()) { Assert.Equal("UnicornProducts", GetEntitySetName(context, typeof(Product))); Assert.Equal("UnicornProducts", GetEntitySetName(context, typeof(FeaturedProduct))); Assert.Equal("UnicornCategories", GetEntitySetName(context, typeof(Category))); } }
public void Set_of_derived_type_initialized() { using (var context = new SetOfDerivedTypeVariant()) { Assert.NotNull(context.UnicornProducts); Assert.NotNull(context.FeaturedProducts); Assert.NotNull(context.UnicornCategories); context.Assert<Product>().IsInModel(); context.Assert<FeaturedProduct>().IsInModel(); context.Assert<Category>().IsInModel(); } }