public void PublishInvokesHtmlFileGenerator() { Repo.Publish(); MockHtmlFileGenerator.Verify( x => x.HandleResource( It.Is <INode>(n => (n as IUriNode).Uri.Equals(_publishedSubject)), It.IsAny <IList <Triple> >(), It.IsAny <IList <Triple> >()), Times.Once); }
public void PublishWithTemplateInvokesHtmlFileGenerator() { var portalInfo = new PortalInfoDrop { OwnerId = "git-user", RepositoryName = "repo-id", OwnerDisplayName = "Git User" }; var templateVariables = new Dictionary <string, object> { { "ownerId", portalInfo?.OwnerId }, { "repoName", portalInfo?.RepositoryName }, { "portalInfo", portalInfo }, }; Repo.Publish(null, templateVariables); MockHtmlFileGenerator.Verify( x => x.HandleResource( It.Is <INode>(n => (n as IUriNode).Uri.Equals(_publishedSubject)), It.IsAny <IList <Triple> >(), It.IsAny <IList <Triple> >()), Times.Once); }