public void AnalysisTimeout(int envSettingsResponse, int expectedTimeout) { var envSettingsMock = new Mock <IEnvironmentSettings>(); envSettingsMock.Setup(x => x.AnalysisTimeoutInMs()).Returns(envSettingsResponse); TaggerProvider.GetAnalysisTimeoutInMilliseconds(envSettingsMock.Object).Should().Be(expectedTimeout); }
public void AnalysisTimeoutInMilliseconds_NoEnvironmentSettings_DefaultTimeout() { TaggerProvider.GetAnalysisTimeoutInMilliseconds().Should().Be(TaggerProvider.DefaultAnalysisTimeoutMs); }