// GET: /Movie/

        //public IActionResult Index()
        //{
        //    List<Movie> movie = Movie.GetAllMovies();
        //    return View(movie);
        //}
        public MovieController(IMovieLogic movieRepository, IGenreLogic genreRepository, ITmdbLogic tmdbLogic, IPersonLogic personRepository)
        {
            _movieRepository  = movieRepository;
            _genreRepository  = genreRepository;
            _tmdbRepository   = tmdbLogic;
            _peopleRepository = personRepository;
        }
Beispiel #2
0
 public EventController(IEventLogic eventLogic,
                        IPersonLogic personLogic,
                        IEventValidation eventValidation)
 {
     _eventLogic      = eventLogic;
     _eventValidation = eventValidation;
     _personLogic     = personLogic;
 }
 public AuthorizationController(IAuthorizationLogic authorizationLogic,
                                IAuthorizationValidation authorizationValidation,
                                IPersonLogic personLogic,
                                IConfiguration configuration)
 {
     _authorizationLogic      = authorizationLogic;
     _authorizationValidation = authorizationValidation;
     _personLogic             = personLogic;
     _configuration           = configuration;
 }
Beispiel #4
0
        public PersonalForm(IWorkshopLogic wslogic, IWorkshopCRUDLogic workshopcrudlogic, IPersonLogic personlogic, IEnrollmentRequest er)
        {
            InitializeComponent();
            this.wslogic     = wslogic;
            this.wscrudlogic = workshopcrudlogic;
            this.personlogic = personlogic;
            this.erlogic     = er;

            erlogic.EnrollmentRequestStatusChangeEvent += new IEnrollmentRequest.EnrollmentRequestStatusHandler(erstatuschange_notification);
            wslogic.ParticipantsLimitEvent             += new IWorkshopLogic.ParticipantsLimitHandler(partlimit_notification);
        }
Beispiel #5
0
        public Initializer(IPersonGroupLogic personGroupLogic,
                           IPersonLogic personLogic,
                           IFaceLogic faceLogic)
        {
            _personGroupLogic = personGroupLogic;
            _personLogic      = personLogic;
            _faceLogic        = faceLogic;

            _isCompleted = false;
            _taskList    = new List <Task>();
        }
Beispiel #6
0
 public PersonController(IPersonLogic personLogic,
                         IPersonValidation personValidation,
                         IEventValidation eventValidation,
                         IEventLogic eventLogic,
                         IBadgeLogic badgeLogic)
 {
     _personLogic      = personLogic;
     _personValidation = personValidation;
     _eventValidation  = eventValidation;
     _eventLogic       = eventLogic;
     _badgeLogic       = badgeLogic;
 }
Beispiel #7
0
        // статический конструктор класса program
        static Program()
        {
            // запуск ninject
            IKernel ninjectKernel = new StandardKernel();

            // регистрация серверов
            Config.RegisterServices(ninjectKernel);
            // создание связанных элементов
            rewardLogic = ninjectKernel.Get <IRewardLogic>();
            personLogic = ninjectKernel.Get <IPersonLogic>();
            medalLogic  = ninjectKernel.Get <IMedalLogic>();
        }
Beispiel #8
0
 public BaseController()
 {
     // TODO: DI
     dataLogic        = new DataLogic();
     bankLogic        = new BankLogic();
     userLogic        = new UserLogic();
     orderLogic       = new OrderLogic();
     legalLogic       = new LegalLogic();
     personLogic      = new PersonLogic();
     requestLogic     = new RequestLogic();
     identityLogic    = new IdentityLogic();
     employeeLogic    = new EmployeeLogic();
     documentLogic    = new DocumentLogic();
     contractLogic    = new ContractLogic();
     pricelistLogic   = new PricelistLogic();
     contractorLogic  = new ContractorLogic();
     accountingLogic  = new AccountingLogic();
     participantLogic = new ParticipantLogic();
 }
Beispiel #9
0
        public ReceptionistForm()
        {
            InitializeComponent();
            wslogic       = new WorkshopLogic();
            wscrudlogic   = new WorkshopCRUDLogic();
            personlogic   = new PersonLogic();
            enrollmentreq = new EnrollmentRequestLogic();

            PersonalForm pf = new PersonalForm(wslogic, wscrudlogic, personlogic, enrollmentreq);

            pf.Show();
            comboBoxTypeWsMan.SelectedIndex  = 0;
            comboBoxPersonRole.SelectedIndex = 0;

            enrollmentreq.EnrollmentRequestEvent += new IEnrollmentRequest.EnrollmentRequestHandler(enrollmentrequest_notification);

            //Dummy data
            personlogic.AddPerson(new Teacher("John", "Teacher", "159357"));
            personlogic.AddPerson(new Student("Sarah", "Student", "159359"));
            wscrudlogic.AddWorkshop(new OnlineWks("An Online Workshop", "How to give online workshops", DateTime.Now, 5, (Teacher)personlogic.GetPerson("159357"), "somelink"));
            UpdateLBER();
            UpdateWSListbox();
            UpdatePeopleListbox();
        }
Beispiel #10
0
 /// <summary>
 /// Constructor method.
 /// </summary>
 /// <param name="personLogic">Person logic layer.</param>
 /// <param name="catLogic">Cats logic layer.</param>
 public CatsController(IPersonLogic personLogic, ICatLogic catLogic)
 {
     this.personLogic = personLogic;
     this.catLogic    = catLogic;
 }
 public PersonController(IPersonLogic personLogic, IPersonTypeLogic personTypeLogic)
 {
     this._personTypeLogic = personTypeLogic;
     this._personLogic     = personLogic;
 }
 public PersonsController(IPersonLogic logic)
 {
     _logic = logic;
 }
 public ContactsController(IAuthorizationLogic authorizationLogic,
                           IPersonLogic personLogic)
 {
     _authorizationLogic = authorizationLogic;
     _personLogic        = personLogic;
 }
 public PersonController(IPersonLogic personLogic)
 {
     _personLogic = personLogic;
 }
 public PeopleController(IPersonLogic personLogic)
 {
     this.personLogic = personLogic;
 }
Beispiel #16
0
 public HomeController(IPersonLogic personLogic)
 {
     this.personLogic = personLogic;
 }
Beispiel #17
0
 public FriendsController(IPersonLogic personLogic,
                          IFriendValidation friendValidation)
 {
     _personLogic      = personLogic;
     _friendValidation = friendValidation;
 }