Пример #1
0
        public async Task ConfirmForMatch_ShouldNotConfirm_WhenMatchDoesNotExist()
        {
            // Arrange
            var responseMessage = "Specified match doesn't exist!";

            _unitOfWorkMock.Setup(x => x.Matchdays.GetById(It.IsAny <int>()))
            .ReturnsAsync(() => null);

            // Act
            var result = await _sut.ConfirmForMatch(It.IsAny <int>(), It.IsAny <int>());

            // Assert
            Assert.Equal(responseMessage, result.Value);
        }