Personally I don't usually test generated primary keys.
On Oct 21, 2009 4:41 AM, "Peter Forstmeier" <[email protected]>
wrote:
Hi List,
i have to following PersistenceSpecification
new PersistenceSpecification<Employee>(session)
.CheckProperty(c =>c.EmployeeGuid,newGuid())
CheckProperty(c => c.EmployeeId,"aa")
.CheckProperty(c => c.Firstname, "John")
.CheckProperty(c => c.Lastname, "Doe")
.CheckProperty(c => c.HoursPerWeek,
Convert.ToDecimal(40.5))
.CheckProperty(c
=>c.AdressGuid,System.Guid.NewGuid())
.VerifyTheMappings();
this line throw an error:
.CheckProperty(c => c.EmployeeGuid,new Guid())
so, what can i do to test a primary key wich is defined as a GUID
Thanks
Peter
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Fluent NHibernate" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/fluent-nhibernate?hl=en
-~----------~----~----~----~------~----~------~--~---