public static CheckController GetInitialisedCheckController(ICheckService checkService)
        {
            var controller = new CheckController(checkService)
            {
                Request = new HttpRequestMessage { RequestUri = new Uri(Url) },
                Configuration = new HttpConfiguration()
            };

            controller.Configuration.MapHttpAttributeRoutes();
            controller.Configuration.EnsureInitialized();

            return controller;
        }
 public void Setup()
 {
     _checkResultController =
         ControllerHelper.GetInitialisedCheckController(_mockCheckResultService.Object);
     AutoMapperConfig.Bootstrap();
 }