public async void HRBorderControllerOnGetByIDWithNullServiceExpectStatus500InternalServerError()
        {
            HRCommonForkerUtilsStub forkerUtil = new HRCommonForkerUtilsStub()
            {
                CanOrderReturn = true
            };
            HRBordersControllersForker forker = new HRBordersControllersForker(forkerUtil);

            using (Task <(int, HRBorder)> resultService = forker.GetFromIDAsync("XX", null))
            {
                await resultService;
                Assert.True(resultService.Result.Item1 == StatusCodes.Status500InternalServerError);
                Assert.True(resultService.Result.Item2 == null);
            }
        }
        public async void HRBorderControllerOnGetByIDNullExpectStatus400BadRequest()
        {
            List <String>           list       = new List <String>();
            HRCommonForkerUtilsStub forkerUtil = new HRCommonForkerUtilsStub()
            {
                CanOrderReturn = true
            };
            HRBordersControllersForker forker = new HRBordersControllersForker(forkerUtil);

            using (Task <(int, HRBorder)> resultService = forker.GetFromIDAsync(null, new CoreBordersServiceStub(list)))
            {
                await resultService;
                Assert.True(resultService.Result.Item1 == StatusCodes.Status400BadRequest);
                Assert.True(resultService.Result.Item2 == null);
            }
        }
        public async void HRBorderControllerOnGetByIDWithExistingItemExpectItemAndCodeStatus200()
        {
            List <String> list = new List <String>()
            {
                ("XX"), ("YY")
            };
            HRCommonForkerUtilsStub forkerUtil = new HRCommonForkerUtilsStub()
            {
                CanOrderReturn = true
            };
            HRBordersControllersForker forker = new HRBordersControllersForker(forkerUtil);

            using (Task <(int, HRBorder)> resultService = forker.GetFromIDAsync("XX", new CoreBordersServiceStub(list)))
            {
                await resultService;
                Assert.True(resultService.Result.Item1 == StatusCodes.Status200OK);
                Assert.True(resultService.Result.Item2 != null && resultService.Result.Item2.FIPS == "XX");
            }
        }
        public async void HRBorderControllerOnGetByIDWithExceptionThrownByServiceExpectStatus500InternalServerError()
        {
            List <String> list = new List <String>()
            {
                ("XX")
            };
            HRCommonForkerUtilsStub forkerUtil = new HRCommonForkerUtilsStub()
            {
                CanOrderReturn = true
            };
            HRBordersControllersForker forker = new HRBordersControllersForker(forkerUtil);

            using (Task <(int, HRBorder)> resultService = forker.GetFromIDAsync("XX", new CoreBordersServiceStub(list)
            {
                ThrowException = true
            }))
            {
                await resultService;
                Assert.True(resultService.Result.Item1 == StatusCodes.Status500InternalServerError);
                Assert.True(resultService.Result.Item2 == null);
            }
        }