public void Public_Controller_Get_ShouldOk() { var callback = _publicController.IsAlive(); var httpResponse = callback.Should().BeOfType <OkNegotiatedContentResult <bool> >().Subject; httpResponse.Content.Should().BeTrue(); }
public void Public_Controller_Get_ShouldOk() { // Action IHttpActionResult callback = _publicController.IsAlive(); //Assert OkNegotiatedContentResult <bool> httpResponse = callback.Should().BeOfType <OkNegotiatedContentResult <bool> >().Subject; httpResponse.Content.Should().BeTrue(); }