/** * <summary>Charge les tâches de la bdd dans la vue</summary> */ private async Task LoadTaches() { _viewModel.IsBusy = true; await _viewModel.Hydrate(); _viewModel.IsBusy = false; }
public async void Execute_Hydrate_WithoutError() { var viewModel = new MesTachesViewModel( new LocataireReadDto { Id = 1 }, FactoryController.CreateMockTache() ); Assert.NotNull(viewModel.TachesData); await viewModel.Hydrate(); Assert.NotEmpty(viewModel.TachesData); await viewModel.Hydrate(); Assert.NotEmpty(viewModel.TachesData); }