public async Task OnVmSelected(string value) { try { if (string.IsNullOrWhiteSpace(value)) { return; } Model.VmName = value; LastVmStatus = "Loading..."; ShowLoading(); var status = await AzureSdkService.GetStatus(Model.SubcriptionId, Model.ResorceGroup, Model.VmName); if (status != null) { LastVmStatus = status.DisplayStatus; } } catch (Exception ex) { Logger.LogErrorCsro(ex); await CsroDialogService.ShowError("Error", $"Detail error: {ex.Message}"); } await InvokeAsync(() => HideLoading()); }
public AzureSdkServiceTests(BaseWebApplicationFactory <TestStartup> applicationFactory, ITestOutputHelper helper) { _helper = helper; _azureService = applicationFactory.Services.GetService <AzureSdkService>(); }