public void BankAccount_Controller_Deposit_ShouldBeOk() { //Arrange var wasDeposited = true; var value = 100; var bankAccount = ObjectMother.BankAccountWithClientWithId(_mockClient.Object); _mockBankAccountService.Setup(bas => bas.Deposit(bankAccount.Id, value)).Returns(wasDeposited); //Action IHttpActionResult callback = _bankAccountController.Deposit(bankAccount.Id, value); //Assert var httpResponse = callback.Should().BeOfType <OkNegotiatedContentResult <bool> >().Subject; _mockBankAccountService.Verify(bas => bas.Deposit(bankAccount.Id, value), Times.Once); }