public void _78_ConfigItemsLoaded() { configService.SaveSettings(); DbServiceMock.Verify(m => m.SettingsSetValue(It.IsAny <SettingsType>(), It.IsAny <string>()), Times.Exactly(78)); }
public void All_78_ConfigItemsLoaded() { configService.LoadSettings(); DbServiceMock.Verify(m => m.SettingsGetValue(It.IsAny <SettingsType>()), Times.Exactly(78)); }
public void DbServiceMethodCallsWithFreeThrowsSingleScoreWindowWidth() { var settingsType = SettingsType.FreeThrowsSingleScoreWindowWidth; var value = 158.26; configService.FreeThrowsSingleScoreWindowWidth = value; configService.SaveSettings(); DbServiceMock.Verify(m => m.SettingsSetValue(settingsType, Common.Converter.ToString(value))); }
public void DbServiceMethodCallsWithCam4SetupSector() { var settingsType = SettingsType.Cam4SetupSector; var value = "20/1"; configService.Cam4SetupSector = value; configService.SaveSettings(); DbServiceMock.Verify(m => m.SettingsSetValue(settingsType, Common.Converter.ToString(value))); }
public void DbServiceMethodCallsWithCam2ThresholdSliderValue() { var settingsType = SettingsType.Cam2ThresholdSlider; var value = 155.25; configService.Cam2ThresholdSliderValue = value; configService.SaveSettings(); DbServiceMock.Verify(m => m.SettingsSetValue(settingsType, Common.Converter.ToString(value))); }
public void DbServiceMethodCallsWithToCam4Distance() { var settingsType = SettingsType.ToCam4Distance; var value = 25.6; configService.ToCam4Distance = value; configService.SaveSettings(); DbServiceMock.Verify(m => m.SettingsSetValue(settingsType, Common.Converter.ToString(value))); }
public void DbServiceMethodCallsWithCam4Enabled() { var settingsType = SettingsType.Cam4CheckBox; var value = true; configService.Cam4Enabled = value; configService.SaveSettings(); DbServiceMock.Verify(m => m.SettingsSetValue(settingsType, Common.Converter.ToString(value))); }
public void DbServiceMethodCallsWithCamsDetectionWindowWidth() { var settingsType = SettingsType.CamsDetectionWindowWidth; var value = 526.25; configService.CamsDetectionWindowWidth = value; configService.SaveSettings(); DbServiceMock.Verify(m => m.SettingsSetValue(settingsType, Common.Converter.ToString(value))); }
public void DbServiceMethodCallsWithMovesDetectedSleepTimeValue() { var settingsType = SettingsType.MoveDetectedSleepTime; var value = 0.25; configService.MovesDetectedSleepTimeValue = value; configService.SaveSettings(); DbServiceMock.Verify(m => m.SettingsSetValue(settingsType, Common.Converter.ToString(value))); }
public void DbServiceMethodCallsWithMainWindowPositionTop() { var settingsType = SettingsType.MainWindowPositionTop; var value = 567; configService.MainWindowPositionTop = value; configService.SaveSettings(); DbServiceMock.Verify(m => m.SettingsSetValue(settingsType, Common.Converter.ToString(value))); }
public void DbServiceMethodCallsWithCam3Id() { var settingsType = SettingsType.Cam3Id; var value = "2323re"; configService.Cam3Id = value; configService.SaveSettings(); DbServiceMock.Verify(m => m.SettingsSetValue(settingsType, Common.Converter.ToString(value))); }
public void DbServiceMethodCallsWithCamsFovAngle() { var settingsType = SettingsType.CamFovAngle; var value = 75.5; configService.CamsFovAngle = value; configService.SaveSettings(); DbServiceMock.Verify(m => m.SettingsSetValue(settingsType, Common.Converter.ToString(value))); }
public void DbServiceMethodCallsWithMinContourWidthValue() { var settingsType = SettingsType.MinContourWidth; var value = 200; configService.MinContourWidthValue = value; configService.SaveSettings(); DbServiceMock.Verify(m => m.SettingsSetValue(settingsType, Common.Converter.ToString(value))); }
public void DbServiceMethodCallsWithResolutionHeight() { var settingsType = SettingsType.ResolutionHeight; var value = 1980; configService.CamsResolutionHeight = value; configService.SaveSettings(); DbServiceMock.Verify(m => m.SettingsSetValue(settingsType, Common.Converter.ToString(value))); }
public void DbServiceMethodCallsWithClassicScoreWindowHeight() { var settingsType = SettingsType.ClassicScoreWindowHeight; var value = 158.26; configService.ClassicScoreWindowHeight = value; configService.SaveSettings(); DbServiceMock.Verify(m => m.SettingsSetValue(settingsType, Common.Converter.ToString(value))); }