public async Task GetAsync_ShouldReturnAthleteDto(int id) { var athlete = _fixture.Build <Athlete>() .Without(a => a.AthleteExercises) .Without(a => a.AthleteProducts) .Create(); _athleteRepository.GetAsync(id).Returns(athlete); var dto = await _sut.GetAsync(id); dto.ShouldNotBeNull(); dto.Id.ShouldBe(athlete.Id); dto.UserId.ShouldBe(athlete.UserId); await _athleteRepository.Received(1).GetAsync(id); }