public void Init() { var securityMocks = new SecurityMocks(); httpMocks = new HTTPMocks(); var debRegDataMocks = new DebRegDataMocks(); unitOfWork = debRegDataMocks.UnitOfWork; userManager = debRegDataMocks.UserManager; var communicationMocks = new DebRegCommunicationMocks(); tournamentRegistrationsManager = new TournamentRegistrationsManager(unitOfWork, communicationMocks.EMailService, userManager); bookingManager = new BookingManager(unitOfWork); ISlotManager slotManager = null; ISecurityManager securityManager = null; tournamentRegistrationController = new TournamentRegistrationController( unitOfWork, tournamentRegistrationsManager, bookingManager, userManager, slotManager, securityManager ); tournamentRegistrationController.ControllerContext = httpMocks.ControllerContext; }
public void Init() { var debRegDataMocks = new DebRegDataMocks(); unitOfWork = debRegDataMocks.UnitOfWork; userManager = debRegDataMocks.UserManager; organizationManager = new OrganizationManager(unitOfWork, userManager); var securityMocks = new SecurityMocks(); var securityManager = securityMocks.SecurityManager; organizationManager = new OrganizationManager(unitOfWork, userManager); organizationController = new OrganizationController(organizationManager, unitOfWork, securityManager, userManager); httpMocks = new HTTPMocks(); organizationController.ControllerContext = httpMocks.ControllerContext; }