Exemplo n.º 1
0
        public void GetAJobWithNoNextActionAndWorkQueue()
        {
            var controller = new JobController();

            var result = controller.GetJob(JobMocks.ReturnPollutionIncidentCompleted().Id, "12");

            var okObjectResult = result.Should().BeOfType <OkObjectResult>().Subject;

            var response = okObjectResult.Value.Should().BeAssignableTo <Halcyon.HAL.HALResponse>().Subject;

            response.HasLink("next_action").Should().BeFalse();

            response.HasLink("work_queue").Should().BeTrue();
        }