public async Task UpdateLesson_ReturnsLessonUpdated() { //Arrange var lesson = AutoFaker.Generate <Lesson>(); var lessonDto = AutoFaker.Generate <LessonDto>(); _mapper.Setup(x => x.Map <Lesson>(lessonDto)) .Returns(lesson); _lessonService.Setup(x => x.UpdateLesson(lesson)) .ReturnsAsync(true); //Act var result = await _sut.UpdateLesson(lessonDto); //Assert result.Should().BeOfType <NoContentResult>(); }