public void InitializeTest() { _mockEventLogRepository.Setup(x => x.IsExist()).ReturnsAsync(true); SettingsPageViewModel unitUnderTest = CreateViewModel(); unitUnderTest.Initialize(new NavigationParameters()); _mockLoggerService.Verify(x => x.Info("isExistEventLogs: True", It.IsAny <string>(), It.IsAny <string>(), It.IsAny <int>()), Times.Once()); }
protected override void OpenFirstRunPage() { //settings have not been saved so let's open the first run wizard INavigationService navService = SimpleIoc.Default.GetInstance <INavigationService>(); SettingsPageViewModel vm = new SettingsPageViewModel(navService); vm.AllowPortSelection = false; vm.AllowPortBarCodeSelection = false; vm.AllowWeighInPageTimeOutSelection = false; vm.IsFirstLaunch = true; NavService.ShowPage(PageType.SETTINGS_PAGE, false, vm); vm.Initialize(); BridgeSyncProcessHelper.SetAppName("BridgeFeederApp"); }