public async Task CanGetSkills() { var skills = new List <Skill>(); var expectedResponse = new List <SkillResponse>(); _skillService.GetSkillsAsync() .Returns(skills); _mapper.Map <List <SkillResponse> >(skills) .Returns(expectedResponse); var result = await _skillsController.GetAsync(); result.Value.Should().BeSameAs(expectedResponse); }