public void SSOMTokenReplacementService_Can_Replace_Site_Token()
        {
            var isValid = true;
            var runner = new SSOMProvisionRunner();

            runner.SiteUrls.ForEach(siteUrl =>
            {
                runner.WithSSOMSiteAndWebContext(siteUrl, (site, web) =>
                {
                    if (site.ServerRelativeUrl == "/")
                    {
                        isValid &= CheckRootWebOnHost(site);
                        isValid &= CheckRootWebOnHost(web);
                        isValid &= CheckRootWebOnHost(web.Lists[0]);
                    }
                    else
                    {
                        isValid &= CheckSubWebOnHost(site, web.ServerRelativeUrl);
                        isValid &= CheckSubWebOnHost(web, web.ServerRelativeUrl);
                        isValid &= CheckSubWebOnHost(web.Lists[0], web.ServerRelativeUrl);
                    }
                });
            });

            Assert.IsTrue(isValid);
        }
 public SSOMTokenReplacementServiceTests()
 {
     Service = new SSOMTokenReplacementService();
     ProvisionRunner = new SSOMProvisionRunner();
 }