public void Item_Url_Is_Correct_Length()
        {
            using (var db = new Db { new DbItem("About us") })
            {
                //Arrange
                Item aboutUs = db.GetItem("/sitecore/content/home/about us");

                Mock<ISitecoreLinkManager> sitecoreLinkManager = new Mock<ISitecoreLinkManager>();
                sitecoreLinkManager.Setup(x => x.GetItemUrl(It.IsAny<Item>(), It.IsAny<string>())).Returns("/en/about-us");

                UrlLengthCalculator urlLengthCalculator = new UrlLengthCalculator(sitecoreLinkManager.Object);

                //Act
                int length = urlLengthCalculator.GetItemUrlLength(aboutUs, "TestSite");

                //Assert
                Assert.That(length, Is.EqualTo(12));
            }
        }
        public void Item_Url_Is_Correct_Length()
        {
            using (var db = new Db {
                new DbItem("About us")
            })
            {
                //Arrange
                Item aboutUs = db.GetItem("/sitecore/content/home/about us");

                Mock <ISitecoreLinkManager> sitecoreLinkManager = new Mock <ISitecoreLinkManager>();
                sitecoreLinkManager.Setup(x => x.GetItemUrl(It.IsAny <Item>(), It.IsAny <string>())).Returns("/en/about-us");

                UrlLengthCalculator urlLengthCalculator = new UrlLengthCalculator(sitecoreLinkManager.Object);

                //Act
                int length = urlLengthCalculator.GetItemUrlLength(aboutUs, "TestSite");

                //Assert
                Assert.That(length, Is.EqualTo(12));
            }
        }