Пример #1
0
        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);
        }
Пример #2
0
 public void AnalysisTimeoutInMilliseconds_NoEnvironmentSettings_DefaultTimeout()
 {
     TaggerProvider.GetAnalysisTimeoutInMilliseconds().Should().Be(TaggerProvider.DefaultAnalysisTimeoutMs);
 }