コード例 #1
0
        public void Public_Controller_Get_ShouldOk()
        {
            var callback     = _publicController.IsAlive();
            var httpResponse = callback.Should().BeOfType <OkNegotiatedContentResult <bool> >().Subject;

            httpResponse.Content.Should().BeTrue();
        }
コード例 #2
0
        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();
        }