public Facts() { Options = new Mock <IOptionsSnapshot <AzureSearchJobConfiguration> >(); Config = new AzureSearchJobConfiguration { GalleryBaseUrl = Data.GalleryBaseUrl, FlatContainerBaseUrl = Data.FlatContainerBaseUrl, FlatContainerContainerName = Data.FlatContainerContainerName, }; Options.Setup(o => o.Value).Returns(() => Config); Target = new BaseDocumentBuilder(Options.Object); }
public BaseFacts(ITestOutputHelper output) { _output = output; _options = new Mock <IOptionsSnapshot <AzureSearchJobConfiguration> >(); _baseDocumentBuilder = new BaseDocumentBuilder(_options.Object); // We intentionally don't mock this. _config = new AzureSearchJobConfiguration { GalleryBaseUrl = Data.GalleryBaseUrl, FlatContainerBaseUrl = Data.FlatContainerBaseUrl, FlatContainerContainerName = Data.FlatContainerContainerName, }; _options.Setup(o => o.Value).Returns(() => _config); _target = new HijackDocumentBuilder(_baseDocumentBuilder); }