Beispiel #1
0
        public async void GetPeople_Test()
        {
            // Act
            var output = await _personAppService.GetAllPeople();

            // Assert
            output.People.Count.ShouldBeGreaterThan(0);
        }
Beispiel #2
0
        public async Task Should_Get_All_People()
        {
            //Run testing method
            var output = await _personAppService.GetAllPeople();

            //Check results
            output.People.Count.ShouldBe(2);
            output.People.FirstOrDefault(p => p.Name == "John Nash").ShouldNotBe(null);
        }
        public async Task <IActionResult> Index()
        {
            var modelDto = (await _tMTaskAppService
                            .GetAllAsync(new PagedTMTaskResultRequestDto
            {
                //MaxResultCount = int.MaxValue
                MaxResultCount = 10
            })
                            ).Items;
            var pmodelDto = (await _personAppService
                             .GetAllPeople());
            var viewModel = new TMTaskListViewModel
            {
                TMTasks   = modelDto,
                TMPersons = pmodelDto
            };

            return(View(viewModel));
        }
        public async Task Should_Get_All_People()
        {
            var output = await _personAppService.GetAllPeople();

            output.People.Count.ShouldBe(4);
        }
        public async Task GetPeople_Test()
        {
            var output = await _personAppService.GetAllPeople();

            output.People.Count().ShouldBeGreaterThan(0);
        }