public async Task ChechInForMatch_ShouldNotCheckInWhenMatchDoesNotExist() { // Arrange var responseMessage = "Specified match doesn't exist!"; _unitOfWorkMock.Setup(x => x.Matchdays.GetById(It.IsAny <int>())) .ReturnsAsync(() => null); // Act var response = await _sut.CheckInForMatch(It.IsAny <int>(), It.IsAny <int>()); // Assert Assert.Equal(responseMessage, response.Value); }