Exemplo n.º 1
0
        public void Public_Controller_Get_ShouldOk()
        {
            var callback     = _publicController.IsAlive();
            var httpResponse = callback.Should().BeOfType <OkNegotiatedContentResult <bool> >().Subject;

            httpResponse.Content.Should().BeTrue();
        }
Exemplo n.º 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();
        }