public void BankAccount_Controller_GenerateBankStatement_ShouldBeOk() { //Arrange var bankAccount = ObjectMother.BankAccountWithClientWithId(_mockClient.Object); _mockBankAccountService.Setup(bas => bas.GenerateBankStatement(bankAccount.Id)).Returns(_mockBankStatement.Object); //Action IHttpActionResult callback = _bankAccountController.GenerateBankStatement(bankAccount.Id); //Assert var httpResponse = callback.Should().BeOfType <OkNegotiatedContentResult <BankStatement> >().Subject; httpResponse.Content.Should().Be(_mockBankStatement.Object); _mockBankAccountService.Verify(bas => bas.GenerateBankStatement(bankAccount.Id)); }