| Changes to /trunk/RMH.IntegrationTests/Repository/PatientRepositorySpecs.cs |
r0 vs. r2
Edit
|
r2
|
| /trunk/RMH.IntegrationTests/Repository/PatientRepositorySpecs.cs | /trunk/RMH.IntegrationTests/Repository/PatientRepositorySpecs.cs r2 | ||
| 1 | using System; | ||
|---|---|---|---|
| 2 | using FluentNHibernate; | ||
| 3 | using FluentNHibernate.Testing; | ||
| 4 | using NUnit.Framework; | ||
| 5 | using RMH.Entities; | ||
| 6 | |||
| 7 | namespace RMH.IntegrationTests.Repository | ||
| 8 | { | ||
| 9 | [TestFixture] | ||
| 10 | public class PatientRepositorySpecs : RepositoryBaseSpecs | ||
| 11 | { | ||
| 12 | [Test] | ||
| 13 | public void can_persist_all_properties_of_patient() | ||
| 14 | { | ||
| 15 | |||
| 16 | new PersistenceSpecification<Patient>(GetSession()) | ||
| 17 | .CheckProperty(x => x.FirstName, "Optimus") | ||
| 18 | .CheckProperty(x => x.LastName, "Prime") | ||
| 19 | .CheckProperty(x => x.MiddleName, "Eugene") | ||
| 20 | .CheckProperty(x => x.VehicleMake, "Ford") | ||
| 21 | .CheckProperty(x => x.VehicleModel, "Fiesta") | ||
| 22 | .CheckProperty(x => x.VehiclePlateNumber, "34834-34343") | ||
| 23 | .CheckProperty(x => x.PhoneNumber, "555-234-3433") | ||
| 24 | .CheckProperty(x => x.PhoneNumberAlternate, "555-231-3433") | ||
| 25 | .CheckProperty(x => x.VehiclePlateState, "PA") | ||
| 26 | .CheckProperty(x => x.EmailAddress, "optimus@autobots.com") | ||
| 27 | .CheckProperty(x => x.DateOfBirth, new DateTime(1984, 1, 1)) | ||
| 28 | .CheckProperty(x => x.DateOfDeath, new DateTime(1989, 1, 1)) | ||
| 29 | .VerifyTheMappings(); | ||
| 30 | |||
| 31 | } | ||
| 32 | |||
| 33 | |||
| 34 | |||
| 35 | |||
| 36 | } | ||
| 37 | } | ||