public void BankAccount_Controller_ChangeActivation_ShouldBeOk() { //Arrange var bankAccount = ObjectMother.BankAccountWithClientWithId(_mockClient.Object); _mockBankAccountService.Setup(bs => bs.ChangeActivation(bankAccount.Id)).Returns(true); //Action IHttpActionResult callBack = _bankAccountController.ChangeActivation(bankAccount.Id); //Assert var httpResponse = callBack.Should().BeOfType <OkNegotiatedContentResult <bool> >().Subject; _mockBankAccountService.Verify(bs => bs.ChangeActivation(bankAccount.Id), Times.Once); }