public static ApplicationsController GetInitialisedApplicationsController(IApplicationService applicationService, IPropertyService propertyService)
        {
            var controller = new ApplicationsController(applicationService, propertyService)
            {
                Request = new HttpRequestMessage { RequestUri = new Uri(Url) },
                Configuration = new HttpConfiguration()
            };

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

            return controller;
        }
 public void Setup()
 {
     _applicationController =
         ControllerHelper.GetInitialisedApplicationsController(_mockApplicationService.Object, _mockPropertyService.Object);
     AutoMapperConfig.Bootstrap();
 }