public void Setup() { _environmentVariablesProvider = Substitute.For <IEnvironmentVariablesProvider>(); _gitDiscovery = Substitute.For <IGitDiscoveryDriver>(); var httpClientFactory = Substitute.For <IHttpClientFactory>(); httpClientFactory.CreateClient().Returns(new HttpClient()); _giteaSettingsReader = new GiteaSettingsReader(_gitDiscovery, _environmentVariablesProvider, httpClientFactory); }
public void Setup() { _environmentVariablesProvider = Substitute.For <IEnvironmentVariablesProvider>(); _giteaSettingsReader = new GiteaSettingsReader(_environmentVariablesProvider); }