public BaseController(BaseServiceCollection baseServiceCollection)
        {
            if (baseServiceCollection == null) return;

            AccountService = baseServiceCollection.AccountService;
            AuthenticationService = baseServiceCollection.AuthenticationService;
            ImageService = baseServiceCollection.ImageService;
        }
 public EventsController(BaseServiceCollection baseServiceCollection, IEventService eventService)
     : base(baseServiceCollection)
 {
     _eventService = eventService;
 }
 public AccountsController(BaseServiceCollection baseServiceCollection)
     : base(baseServiceCollection)
 {
 }
 public HomeController(BaseServiceCollection baseServiceCollection)
     : base(baseServiceCollection)
 {
 }
 public AdminBaseController(BaseServiceCollection baseServiceCollection)
     : base(baseServiceCollection)
 {
 }
 public PositionsController(BaseServiceCollection baseServiceCollection, IPositionService positionService)
     : base(baseServiceCollection)
 {
     _positionService = positionService;
 }
 public MockBaseController(BaseServiceCollection serviceCollection)
     : base(serviceCollection)
 {
 }
 private void SetupGetLogInForAuthenticatedUser()
 {
     var mockUser = new MockUser { Identity = new MockIdentity("", "", true) };
     var mockHttpContext = new MockHttpContextBase { User = mockUser };
     var controllerContext = new ControllerContext { HttpContext = mockHttpContext };
     var accountService = new Mock<IAccountService>();
     accountService.Setup(x => x.GetUserByEmailAddress(It.IsAny<string>())).Returns(new User());
     var baseServiceCollection = new BaseServiceCollection(accountService.Object, null, null);
     _accountController = new AccountsController(baseServiceCollection) { ControllerContext = controllerContext };
 }
 private void SetupGetEditEvent()
 {
     var eventService = new Mock<IEventService>();
     eventService.Setup(x => x.GetEventById(It.IsAny<long>())).Returns(new Event { Flyer = new Image() });
     var accountService = new Mock<IAccountService>();
     accountService.Setup(x => x.GetUserByEmailAddress(It.IsAny<string>())).Returns(new User { FirstName = "Test", LastName = "Test" });
     var httpContext = new MockHttpContextBase { User = new MockUser { Identity = new MockIdentity("", "", false) } };
     var baseServices = new BaseServiceCollection(accountService.Object, null, null);
     _eventsController = new EventsController(baseServices, eventService.Object)
                             {
                                 ControllerContext = new ControllerContext(httpContext, new RouteData(), new BaseController(baseServices))
                             };
 }