public void AddSquares_ShouldReturnTrue() { var ticTacToe = _ticTacToeTestsFixture.GetFakeTicTacToe(); var squares = _ticTacToeTestsFixture.GetFakeTicTacToeSquares(); var result = ticTacToe.AddSquares(squares); result.Should().BeTrue(); ticTacToe.Squares.Should().BeEquivalentTo(squares); }
public async Task CreateAsync_ShouldReturnResultResponseWithSuccess() { var ticTacToe = _ticTacToeTestsFixture.GetFakeTicTacToe(); var squares = _ticTacToeTestsFixture.GetFakeTicTacToeSquares(); var result = await _ticTacToeService.CreateAsync(ticTacToe, squares); result.Success.Should().BeTrue(); ticTacToe.IsValid().Should().BeTrue(); _repositoryMock.Verify(rm => rm.CreateAsync(ticTacToe), Times.Once); }