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();
        }
Exemple #2
0
        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();
        }
Exemple #3
0
        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 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();
        }