public void Conta_Controller_Post_DeveFuncionar() { int id = 1; _contaServicoMock.Setup(c => c.Inserir(_conta.Object)).Returns(id); IHttpActionResult callback = _contasController.Inserir(_conta.Object); var httpResponse = callback.Should().BeOfType <OkNegotiatedContentResult <int> >().Subject; httpResponse.Content.Should().Be(id); _contaServicoMock.Verify(c => c.Inserir(_conta.Object), Times.Once); }