public void TestGetWebsitesEmpty() { var umbracoHelperService = new Mock<IUmbracoHelperService>(); var publishedContentExtensionService = new Mock<IPublishedContentExtensionService>(); var nodeService = new NodeService(new UmbracoMapper(), umbracoHelperService.Object, publishedContentExtensionService.Object); umbracoHelperService.Setup(x => x.TypedContent(It.IsAny<int>())) .Returns((IPublishedContent) null); var websites = nodeService.GetWebsites().ToList(); Assert.AreEqual(0, websites.Count); }