public WebSite WebSite() { var common = new CommonMappingTest(); var currency = common.MapCurrency(); var language = common.MapLanguage(); return new PersistenceSpecification<WebSite>(Session) .CheckReference(x => x.Currency, currency) .CheckProperty(x => x.DomainName, "Domain 12") .CheckProperty(x => x.GoogleAnalyticsAccount, "ga script") .CheckProperty(x => x.IconPath, "icon") .CheckProperty(x => x.IncludeVat, true) .CheckProperty(x => x.IsDefault, true) .CheckReference(x => x.Language, language) .CheckProperty(x => x.Name, "web 12 site name") .CheckProperty(x => x.UsePagePermissionsInGui, true) .CheckProperty(x => x.UsePageResponsibilityInGui, true) .CheckProperty(x => x.FrameworkPath, "framework") //startpage //toppage .VerifyTheMappings(); }
public WebSite WebSite() { var common = new CommonMappingTest(); var currency = common.MapCurrency(); var language = common.MapLanguage(); return(new PersistenceSpecification <WebSite>(Session) .CheckReference(x => x.Currency, currency) .CheckProperty(x => x.DomainName, "Domain 12") .CheckProperty(x => x.GoogleAnalyticsAccount, "ga script") .CheckProperty(x => x.IconPath, "icon") .CheckProperty(x => x.IncludeVat, true) .CheckProperty(x => x.IsDefault, true) .CheckReference(x => x.Language, language) .CheckProperty(x => x.Name, "web 12 site name") .CheckProperty(x => x.UsePagePermissionsInGui, true) .CheckProperty(x => x.UsePageResponsibilityInGui, true) .CheckProperty(x => x.FrameworkPath, "framework") //startpage //toppage .VerifyTheMappings()); }