using EnterpriseSample.Core.Domain; using EnterpriseSample.Tests.Domain; namespace EnterpriseSample.Tests { public class TestGlobals { public static string SessionFactoryConfigPath { get { return @"C:\My Stuff\Dev\RandD\NHibernate\Article\Edition1.2\EnterpriseSample\EnterpriseSample.Web\Config\NorthwindNHibernate.config"; } } public static string TargetHttpServer { get { return "http://localhost/EnterpriseNHibernateSample/"; } } // The following can be uncommented to pre-load all the ASPX pages on the production server //public static string TargetHttpServer { // get { return "http://www.productionserver.com/"; } //} /// <summary> /// An unchanging customer ID which should always be available within the database for /// running tests against a "real" customer. /// </summary> public static Customer TestCustomer { get { Customer customer = new Customer("Cactus Comidas para llevar"); new DomainObjectIdSetter<string>().SetIdOf(customer, "CACTU"); customer.ContactName = "Patricio Simpson"; return customer; } } } }
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)