public static EventController GetInitialisedNotesController(IEventService eventService)
        {
            var controller = new EventController(eventService)
            {
                Request = new HttpRequestMessage { RequestUri = new Uri("http://localhost/api/") },
                Configuration = new HttpConfiguration()
            };

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

            return controller;
        }
 public void EventController_NullEventService_ThrowsException()
 {
     //act
     var sut = new EventController(null);
 }
 public void Setup()
 {
     _eventController = ControllerHelper.GetInitialisedNotesController(_mockEventService.Object);
     AutoMapperConfig.Bootstrap();
 }