My favorites | Sign in
Logo
rmh
             
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using System;
using FluentNHibernate;
using FluentNHibernate.Testing;
using NUnit.Framework;
using RMH.Entities;

namespace RMH.IntegrationTests.Repository
{
[TestFixture]
public class PatientRepositorySpecs : RepositoryBaseSpecs
{
[Test]
public void can_persist_all_properties_of_patient()
{

new PersistenceSpecification<Patient>(GetSession())
.CheckProperty(x => x.FirstName, "Optimus")
.CheckProperty(x => x.LastName, "Prime")
.CheckProperty(x => x.MiddleName, "Eugene")
.CheckProperty(x => x.VehicleMake, "Ford")
.CheckProperty(x => x.VehicleModel, "Fiesta")
.CheckProperty(x => x.VehiclePlateNumber, "34834-34343")
.CheckProperty(x => x.PhoneNumber, "555-234-3433")
.CheckProperty(x => x.PhoneNumberAlternate, "555-231-3433")
.CheckProperty(x => x.VehiclePlateState, "PA")
.CheckProperty(x => x.EmailAddress, "optimus@autobots.com")
.CheckProperty(x => x.DateOfBirth, new DateTime(1984, 1, 1))
.CheckProperty(x => x.DateOfDeath, new DateTime(1989, 1, 1))
.VerifyTheMappings();

}




}
}
Show details Hide details

Change log

r2 by ignu.smith on Apr 26, 2009   Diff
Initial Commit after Lansing Give Camp
Go to: 
Sign in to write a code review

Older revisions

All revisions of this file

File info

Size: 1403 bytes, 37 lines
Hosted by Google Code