Example #1
0
 public void Can_correctly_map_TaskRecord()
 {
     new PersistenceSpecification <TaskRecord>(SessionFactoryBuilder.BuildTestSessionFactory <TaskRecord>().OpenSession())
     .CheckProperty(c => c.Id, 1)
     .CheckProperty(c => c.Title, "John")
     .CheckProperty(c => c.Description, "Some long text testing description")
     .CheckProperty(c => c.Creator, "Doe")
     .VerifyTheMappings();
 }
 public BaseRepositoryTests()
 {
     _session    = SessionFactoryBuilder.BuildTestSessionFactory <TestRecord>().OpenSession();
     _repository = new TestBaseRepository(_session);
 }