public void SetAsChosenAnswer_Should_Call_Dispatch_On_Bus_When_Api_Called_And_Return_NoContent_Result() { //Arrange var command = CommandFactory.BuildACommandOfType().ChosenAnswer; //Act var result = _controller.SetAsChosenAnswer(command); //Assert _commandBus.Verify(a => a.Dispatch(command)); Assert.IsType <NoContentResult>(result); }