public void TestPassed() { var sitecoreConfiguration = new SitecoreInstance { InstanceName = "cd1", ServerRoles = new[] { ServerRole.ContentDelivery }, Version = new SitecoreVersion(8, 2, 2), Configuration = new XmlDocument() .Create( "/configuration/sitecore/"), IncludeFiles = new Map <ConfigurationFile>(x => x.FilePath) { { new ConfigurationFile("App_Config/Include/ListManagement/Sitecore.Helpers.config", "<configuration><sitecore></sitecore></configuration>") }, { new ConfigurationFile("App_Config/Include/ListManagement/Sitecore.Services.config", "<configuration><sitecore></sitecore></configuration>") }, }, InstalledModules = new Map <IReleaseInfo>(x => x.Release.ProductName) { { new ReleaseInfo(ServiceClientBuilder.Create().Build().Products["Email Experience Manager"].Versions["3.4.1"]) } }, }; new SolutionUnitTestContext() .AddInstance(sitecoreConfiguration) .Process(this) .Done(); }
public void TestPassed() { var sitecoreConfiguration = new SitecoreInstance { Configuration = new XmlDocument() .Create("/configuration/system.web/httpHandlers"), Version = new SitecoreVersion(8, 1, 0), InstalledModules = new Map <IReleaseInfo>(x => x.Release.ProductName) { { new ReleaseInfo(new ServiceClient().Products["Email Experience Manager"].Versions["3.2.0"]) } }, }; new SolutionUnitTestContext() .AddInstance(sitecoreConfiguration) .Process(this) .Done(); }
public void TestPassed() { var sitecoreConfiguration = new SitecoreInstance { ServerRoles = new[] { ServerRole.ContentManagement }, Configuration = new XmlDocument().Create("/configuration/sitecore/settings/setting[@name='ECM.RendererUrl' and @value='http://sitecore.net']"), Version = new SitecoreVersion(7, 2, 2), InstalledModules = new Map <IReleaseInfo>(x => x.Release.ProductName) { { new ReleaseInfo(new ServiceClient().Products["Email Experience Manager"].Versions["2.2.0"]) } }, }; new SolutionUnitTestContext() .AddInstance(sitecoreConfiguration) .Process(this) .Done(); }
public void TestPassed() { var sitecoreConfiguration = new SitecoreInstance { InstanceName = "cd1", ServerRoles = new[] { ServerRole.ContentDelivery }, Configuration = new XmlDocument().Create("/configuration/sitecore/settings/setting[@name='Analytics.DefaultDefinitionDatabase' and @value='web']"), Version = new SitecoreVersion(8, 2, 3), InstalledModules = new Map <IReleaseInfo>(x => x.Release.ProductName) { { new ReleaseInfo(ServiceClientBuilder.Create().Build().Products["Email Experience Manager"].Versions["3.4.1"]) } }, }; new SolutionUnitTestContext() .AddInstance(sitecoreConfiguration) .Process(this) .Done(); }
public void TestFailed() { var sitecoreConfiguration = new SitecoreInstance { ServerRoles = new[] { ServerRole.ContentManagement }, Configuration = new XmlDocument().Create("/configuration/sitecore/settings"), Version = new SitecoreVersion(7, 2, 2), InstalledModules = new Map <IReleaseInfo>(x => x.Release.ProductName) { { new ReleaseInfo(new ServiceClient().Products["Email Experience Manager"].Versions["2.2.0"]) } }, }; new SolutionUnitTestContext() .AddInstance(sitecoreConfiguration) .Process(this) .MustReturn(new TestOutput(TestResultState.Warning, string.Format(ErrorFormatWithMessage, KbNumber, ErrorMessage, KbName), Link)) .Done(); }
public void TestFailed() { var sitecoreConfiguration = new SitecoreInstance { InstanceName = "cd1", ServerRoles = new[] { ServerRole.ContentDelivery }, Configuration = new XmlDocument().Create("/configuration/sitecore/settings"), //no setting means "master" database is used. Version = new SitecoreVersion(8, 2, 2), InstalledModules = new Map <IReleaseInfo>(x => x.Release.ProductName) { { new ReleaseInfo(ServiceClientBuilder.Create().Build().Products["Email Experience Manager"].Versions["3.4.1"]) } }, }; new SolutionUnitTestContext() .AddInstance(sitecoreConfiguration) .Process(this) .MustReturn(new TestOutput(TestResultState.Warning, ErrorMessage)) .Done(); }
public void TestFailed() { var configuration = new XmlDocument() .Create("/configuration/system.web/httpHandlers/add[@path='sitecore_ecm_speak_request.ashx']"); var sitecoreConfiguration = new SitecoreInstance { Configuration = configuration, Version = new SitecoreVersion(8, 1, 1), InstalledModules = new Map <IReleaseInfo>(x => x.Release.ProductName) { { new ReleaseInfo(new ServiceClient().Products["Email Experience Manager"].Versions["3.2.0"]) } }, }; new SolutionUnitTestContext() .AddInstance(sitecoreConfiguration) .Process(this) .MustReturn(new TestOutput(TestResultState.Warning, GetErrorMessage("<httpHandlers>", false))) .Done(); }
public void TestFailed() { var sitecoreConfiguration = new SitecoreInstance { InstanceName = "cd1", ServerRoles = new[] { ServerRole.ContentDelivery }, Version = new SitecoreVersion(8, 2, 2), Configuration = new XmlDocument(), IncludeFiles = new Map <ConfigurationFile>(x => x.FilePath) { { new ConfigurationFile("App_Config/Include/ListManagement/Sitecore.ListManagement.config", "<configuration><sitecore></sitecore></configuration>") }, { new ConfigurationFile("App_Config/Include/ListManagement/Sitecore.ListManagement.Services.config", "<configuration><sitecore></sitecore></configuration>") }, }, InstalledModules = new Map <IReleaseInfo>(x => x.Release.ProductName) { { new ReleaseInfo(ServiceClientBuilder.Create().Build().Products["Email Experience Manager"].Versions["3.4.1"]) } }, }; new SolutionUnitTestContext() .AddInstance(sitecoreConfiguration) .Process(this) .MustReturn(new TestOutput(TestResultState.Warning, ErrorMessage(), data: GetMessage( new List <string>() { "App_Config/Include/ListManagement/Sitecore.ListManagement.config", "App_Config/Include/ListManagement/Sitecore.ListManagement.Services.config" }))) .Done(); }