private MesTachesViewModel ViewModel() { return(new MesTachesViewModel( new LocataireReadDto { Id = 2 }, FactoryController.CreateMockTache() )); }
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); }