From: <ric...@us...> - 2010-06-19 15:00:26
|
Revision: 4992 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=4992&view=rev Author: ricbrown Date: 2010-06-19 15:00:19 +0000 (Sat, 19 Jun 2010) Log Message: ----------- Changed defaults for command-line build to Sql2008 dialect, and updated NorthwindDbCreator to use static date expected in tests. Modified Paths: -------------- trunk/nhibernate/build-common/nhibernate-properties.xml trunk/nhibernate/src/NHibernate.Test/Linq/NorthwindDbCreator.cs Modified: trunk/nhibernate/build-common/nhibernate-properties.xml =================================================================== --- trunk/nhibernate/build-common/nhibernate-properties.xml 2010-06-18 05:20:34 UTC (rev 4991) +++ trunk/nhibernate/build-common/nhibernate-properties.xml 2010-06-19 15:00:19 UTC (rev 4992) @@ -1,6 +1,6 @@ <?xml version="1.0" ?> <project xmlns="http://nant.sf.net/release/0.85-rc3/nant.xsd"> - <property name="nhibernate.dialect" value="NHibernate.Dialect.MsSql2005Dialect" overwrite="false"/> + <property name="nhibernate.dialect" value="NHibernate.Dialect.MsSql2008Dialect" overwrite="false"/> <property name="nhibernate.connection.driver_class" value="NHibernate.Driver.SqlClientDriver" overwrite="false"/> <property name="nhibernate.connection.connection_string" value="Server=(local);initial catalog=nhibernate;Integrated Security=SSPI" overwrite="false"/> </project> Modified: trunk/nhibernate/src/NHibernate.Test/Linq/NorthwindDbCreator.cs =================================================================== --- trunk/nhibernate/src/NHibernate.Test/Linq/NorthwindDbCreator.cs 2010-06-18 05:20:34 UTC (rev 4991) +++ trunk/nhibernate/src/NHibernate.Test/Linq/NorthwindDbCreator.cs 2010-06-19 15:00:19 UTC (rev 4992) @@ -8,6 +8,8 @@ { public static class NorthwindDbCreator { + private static readonly DateTime KnownDate = new DateTime(2010, 06, 17); + public static void CreateMiscTestData(ISession session) { var roles = new[] @@ -30,7 +32,7 @@ var users = new[] { - new User("ayende", DateTime.Today) + new User("ayende", KnownDate) { Role = roles[0], InvalidLoginAttempts = 4, @@ -68,24 +70,24 @@ { new Timesheet { - SubmittedDate = DateTime.Today, + SubmittedDate = KnownDate, Submitted = true }, new Timesheet { - SubmittedDate = DateTime.Today.AddDays(-1), + SubmittedDate = KnownDate.AddDays(-1), Submitted = false, Entries = new List<TimesheetEntry> { new TimesheetEntry { - EntryDate = DateTime.Today, + EntryDate = KnownDate, NumberOfHours = 6, Comments = "testing 123" }, new TimesheetEntry { - EntryDate = DateTime.Today.AddDays(1), + EntryDate = KnownDate.AddDays(1), NumberOfHours = 14 } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |