private async Task <bool> ShouldPopulate() { var populate = true; var diagnosticsResult = SubsonicService.Ping(); await diagnosticsResult.Execute(); if (diagnosticsResult.Error != null) { populate = false; ErrorDialogViewModel.HandleError(diagnosticsResult.Error); } return(populate); }
public async Task HandleError_WithException_ShouldSetIsHiddenFalse() { await _subject.HandleError(new Exception("test")); _subject.IsHidden.Should().BeFalse(); }