public void Get_should_return_status_code_200() { var controller = new HeartbeatController(); var result = controller.Get(); result.Should().BeAssignableTo <StatusCodeResult>(); var statusCodeResult = result as StatusCodeResult; statusCodeResult.StatusCode.Should().Be((int)HttpStatusCode.OK); }
public void Get_ReturnsOkResponse() { var actual = _underTest.Get(); Assert.IsAssignableFrom <OkResult>(actual); }