public async Task GetUpcomingMatchday_ShouldBeDoneSuccessfully() { // Arrange var matchdayId = 1; var datePlaying = DateTime.Now; var matchday = new Matchday() { Id = matchdayId, DatePlaying = datePlaying }; var matchdayToReturnDto = new MatchdayToReturnDto() { Id = matchdayId, DatePlaying = datePlaying }; _unitOfWorkMock.Setup(x => x.Matchdays.GetMatchdayWithAdditionalInformation(It.IsAny <int>())) .ReturnsAsync(matchday); _mapperMock.Setup(x => x.Map <MatchdayToReturnDto>(matchday)) .Returns(matchdayToReturnDto); // Act var result = await _sut.GetUpcomingMatchday(It.IsAny <int>()); // Assert Assert.Equal(matchdayId, result.Id); Assert.Equal(datePlaying, result.DatePlaying); }