public void TestGetPageExists() { const int id = 1; 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(id)).Returns(new MockPublishedContent(id)); var baseDocumentType = nodeService.GetPage<BaseDocumentType>(id); Assert.AreEqual(id, baseDocumentType.Id); }