public async Task Should_Get_All_Employees()
        {
            //Act
            var output = await _employeeAppService.GetAllAsync(new GetEmployeesInput
            {
                ItemsToFetch = 10,
                PageNumber   = 1
            });

            //Assert
            output.Count().ShouldBe(2);
        }
예제 #2
0
        public async Task <ActionResult> Index(GetEmployeesInput input)
        {
            var result = await _employeeAppService.GetAllAsync(input);

            return(View("GetAll", result));
        }