public void Setup() { _config = Substitute.For <IConfig>(); _tipRelatedCardList = Substitute.For <ITipRelatedCardList>(); var tipRelatedHtmlDocument = Substitute.For <ITipRelatedHtmlDocument>(); _semanticSearch = Substitute.For <ISemanticSearch>(); _config.WikiaDomainUrl.Returns("http://yugioh.wikia.com"); _sut = new TipRelatedWebPage(_config, _tipRelatedCardList, tipRelatedHtmlDocument, _semanticSearch); }
public TipRelatedWebPage ( IOptions <AppSettings> appsettingsOptions, ITipRelatedCardList tipRelatedCardList, ITipRelatedHtmlDocument tipRelatedHtmlDocument, ISemanticSearch semanticSearch ) { _appsettingsOptions = appsettingsOptions; _tipRelatedCardList = tipRelatedCardList; _tipRelatedHtmlDocument = tipRelatedHtmlDocument; _semanticSearch = semanticSearch; }
public TipRelatedWebPage ( IConfig config, ITipRelatedCardList tipRelatedCardList, ITipRelatedHtmlDocument tipRelatedHtmlDocument, ISemanticSearch semanticSearch ) { _config = config; _tipRelatedCardList = tipRelatedCardList; _tipRelatedHtmlDocument = tipRelatedHtmlDocument; _semanticSearch = semanticSearch; }