コード例 #1
0
ファイル: JobsAPITests.cs プロジェクト: redahmeid/ms-spike
        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();
        }