public void AddMatch_Given_ProvidedValidTeamIdAndMatchResult_Then_TeamMatchListIsSuccessfullyUpdated() { //Arrange _teamFactoryMock .Setup(p => p.AddMatch(It.IsAny <int>(), It.IsAny <MatchResultType>())) .Returns(true); //Act var result = _teamService.AddMatch(1, MatchResultType.Win); //Assert Assert.True(result); _teamFactoryMock.Verify(mock => mock.AddMatch(It.IsAny <int>(), It.IsAny <MatchResultType>()), Times.Once()); }