public void PingGet_ReturnsSuccess() { //Arrange var projectedNoticeDateController = new ProjectedNoticeDateController(_service.Object, _mockLogger.Object, _confOptions); //Act var result = projectedNoticeDateController.Get(); //Assert var contentResult = result.Should().BeOfType <ContentResult>().Subject; contentResult.StatusCode.Should().Be((int)System.Net.HttpStatusCode.OK); contentResult.Content.Should().Be("PingGet response from RPS Api ProjectedNoticeDate"); }