public void CanCreateBlogEntities() { //-- Arrange var metadataCache = new TypeMetadataCache( new DataObjectConventions(), new PascalCaseRelationalMappingConvention(usePluralTableNames: true), GetRepositoryMixinsRegistrations()); var entityFactory = new EfEntityObjectFactory(_dynamicModule, metadataCache); //-- Act var author = entityFactory.NewEntity<IR2.IAuthorEntity>(); var article = entityFactory.NewEntity<IR2.IArticleEntity>(); var post = entityFactory.NewEntity<IR2.IPostEntity>(); var tag = entityFactory.NewEntity<IR2.ITagEntity>(); //-- Assert //TODO }
public void CanCreateEntityObjects() { //-- Arrange var metadataCache = new TypeMetadataCache( new DataObjectConventions(), new PascalCaseRelationalMappingConvention(usePluralTableNames: true), GetRepositoryMixinsRegistrations()); var entityObjectFactory = new EfEntityObjectFactory(_dynamicModule, metadataCache); //-- Act var password = entityObjectFactory.NewEntity<IR3.IPasswordEntity>(); var role = entityObjectFactory.NewEntity<IR3.IUserRoleEntity>(); var userAccount = entityObjectFactory.NewEntity<IR3.IUserAccountEntity>(); //-- Assert Assert.That(password, Is.Not.Null); Assert.That(role, Is.Not.Null); Assert.That(userAccount, Is.Not.Null); }