public void CanReturnSpWebTemplateCollectionFromLcid()
        {
            //Arrange
            var  templateCollection = new SPWebTemplateCollectionSubstitute();
            uint lcid = 1033;

            //Act
            Sut.WebTemplates(lcid).Returns(templateCollection);

            //Assert
            using (var site = GetSite())
            {
                Assert.That(site.GetWebTemplates(lcid), Is.SameAs(templateCollection.SpType));
            }
        }
        public void Returns(List <SPWebTemplateSubstitute> webTemplates)
        {
            var site = new SPSiteSubstitute(Arg.Any());

            site.WebTemplates(Arg.Any()).Returns(webTemplates);
        }