Example #1
0
        public void Init()
        {
            var dataMocks = new DebRegDataMocks();
            IUnitOfWork unitOfWork = dataMocks.UnitOfWork;
            ISlotAssignmentManager slotAssignmentManager = new SlotAssignmentManager(unitOfWork);
            IBookingManager bookingManager = new BookingManager(unitOfWork);

            DebRegUserManager userManager = dataMocks.UserManager;
            ITournamentManager tournamentManager = new TournamentManager(unitOfWork, userManager);

            var communiationMocks = new DebRegCommunicationMocks();
            IEMailService emailService = communiationMocks.EMailService;
            ITournamentRegistrationsManager tournamentRegistrationsManager = new TournamentRegistrationsManager(unitOfWork, emailService, userManager);
            ISlotManager slotManager = new SlotManager(slotAssignmentManager, tournamentRegistrationsManager, tournamentManager, bookingManager, emailService, userManager);

            SecurityMocks securityMocks = new SecurityMocks();
            IAuthenticationManager authManager = securityMocks.AuthManager;
            ISecurityManager securityManager = new SecurityManager(userManager, authManager);
            IOrganizationManager organizationManager = new OrganizationManager(unitOfWork, userManager);
            SlotController slotController = new SlotController(
                unitOfWork, 
                tournamentRegistrationsManager, 
                slotAssignmentManager, 
                slotManager, 
                organizationManager, 
                tournamentManager,
                userManager);
        }
        public void Init()
        {
            var dataMocks = new DebRegDataMocks();

            unitOfWork = dataMocks.UnitOfWork;
            mailService = new DebRegCommunicationMocks().EMailService;
            userManager = dataMocks.UserManager;
            tournamentRegistrationsManager = new TournamentRegistrationsManager(unitOfWork, mailService, userManager);
        }
Example #3
0
        //// POST api/<controller>
        //public void Post([FromBody]string value)
        //{
        //}

        //// PUT api/<controller>/5
        //public void Put(int id, [FromBody]string value)
        //{
        //}

        //// DELETE api/<controller>/5
        //public void Delete(int id)
        //{
        //}

        public TeamController(TournamentRegistrationsManager tournamentRegistrationsManager, DebRegUserManager userManager)
        {
            this.tournamentRegistrationsManager = tournamentRegistrationsManager;
            this.userManager = userManager;
        }
Example #4
0
        //public UserController(
        //    IUnitOfWork unitOfWork,
        //    TournamentRegistrationsManager tournamentRegistrationsManager,
        //    ISendMail sendMail,
        //    OrganizationManager organizationManager,
        //    ISecurityManager securityManager,
        //    ICountryManager countryManager,
        //    ITournamentManager tournamentManager)
        //{
        //    this.unitOfWork = unitOfWork;
        //    this.tournamentRegistrationsManager = tournamentRegistrationsManager;
        //    this.sendMail = sendMail;
        //    this.organizationManager = organizationManager;
        //    this.userManager = this.UserManager;
        //    this.securityManager = securityManager;
        //    this.countryManager = countryManager;
        //    this.tournamentManager = tournamentManager;
        //}

        public UserController(
            IUnitOfWork unitOfWork,
            TournamentRegistrationsManager tournamentRegistrationsManager,
            ISendMail sendMail,
            OrganizationManager organizationManager,
            DebRegUserManager userManager,
            ISecurityManager securityManager,
            ICountryManager countryManager,
            ITournamentManager tournamentManager)
        {
            this.unitOfWork = unitOfWork;
            this.tournamentRegistrationsManager = tournamentRegistrationsManager;
            this.sendMail = sendMail;
            this.organizationManager = organizationManager;
            this.securityManager = securityManager;
            this.countryManager = countryManager;
            this.tournamentManager = tournamentManager;
            this.userManager = userManager;
        }
Example #5
0
 public SpeakerController(DebRegUserManager userManager, TournamentRegistrationsManager tournamentRegistrationsManager)
 {
     this.userManager = userManager;
     this.tournamentRegistrationsManager = tournamentRegistrationsManager;
 }