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