예제 #1
0
        public frmLogin()
        {
            var container = NinjectDependencyContainer.RegisterDependency(new StandardKernel());

            _personelRepo = container.Get <IPersonelRepository>();
            InitializeComponent();
        }
        public FormPersonelIslemleri()
        {
            var container = NinjectDependencyContainer.RegisterDependency(new StandardKernel());

            _uow             = container.Get <IUnitOfWork>();
            _personelService = container.Get <IPersonelService>();
            InitializeComponent();
        }
예제 #3
0
        public FormLogin()
        {
            var container = NinjectDependencyContainer.RegisterDependency(new StandardKernel());

            _loginService = container.Get <ILoginService>();
            _loginRepo    = container.Get <ILoginRepository>();
            InitializeComponent();
        }
예제 #4
0
        public frmFilmTuru()
        {
            var container = NinjectDependencyContainer.RegisterDependency(new StandardKernel());

            _filmturservice = container.Get <IFilmTuruService>();
            _filmturrepo    = container.Get <IFilmTuruRepository>();
            InitializeComponent();
        }
예제 #5
0
        public FormOdaIslemleri()
        {
            var container = NinjectDependencyContainer.RegisterDependency(new StandardKernel());

            _unitOfWork = container.Get <IUnitOfWork>();
            _odaService = container.Get <IOdaService>();
            InitializeComponent();
        }
        public frmUnvanEkle()
        {
            var container = NinjectDependencyContainer.RegisterDependency(new StandardKernel());

            _unvanService = container.Get <IUnvanService>();
            _unvanRepo    = container.Get <IUnvanRepository>();
            InitializeComponent();
        }
예제 #7
0
        public FormResepsiyon()
        {
            var container = NinjectDependencyContainer.RegisterDependency(new StandardKernel());

            _unitOfWork = container.Get <IUnitOfWork>();
            _odaRepo    = container.Get <IOdaRepository>();
            InitializeComponent();
        }
예제 #8
0
        public FormFatura()
        {
            var container = NinjectDependencyContainer.RegisterDependency(new StandardKernel());

            _faturaRepo = container.Get <IFaturaRepository>();
            _uow        = container.Get <IUnitOfWork>();
            InitializeComponent();
        }
        public FormKullaniciAyarlari()
        {
            var container = NinjectDependencyContainer.RegisterDependency(new StandardKernel());

            _uow        = container.Get <IUnitOfWork>();
            _logService = container.Get <ILoginService>();
            //_logService = container.Get<ILoginService>();
            InitializeComponent();
        }
예제 #10
0
        public FormParent()
        {
            var container = NinjectDependencyContainer.RegisterDependency(new StandardKernel());

            _personelRepo = container.Get <IPersonelRepository>();
            _filmRepo     = container.Get <IFilmRepository>();
            _salonRepo    = container.Get <ISalonRepository>();
            InitializeComponent();
        }
예제 #11
0
        public FormResepsiyon()
        {
            var container = NinjectDependencyContainer.RegisterDependency(new StandardKernel());

            _uow            = container.Get <IUnitOfWork>();
            _musteriService = container.Get <IMusteriService>();
            _musteriRepo    = container.Get <IMusteriRepository>();
            CheckForIllegalCrossThreadCalls = false;
            InitializeComponent();
        }
예제 #12
0
        public FormSalon2(Film f, int SeansId, int SalonId)
        {
            var container = NinjectDependencyContainer.RegisterDependency(new StandardKernel());

            _uow         = container.Get <IUnitOfWork>();
            this.f       = f;
            this.SeansId = SeansId;
            this.SalonId = SalonId;
            InitializeComponent();
        }
        public void Container_WhenRegistered_ResolvesMappedType()
        {
            var container = new NinjectDependencyContainer();
            container.RegisterType(typeof (BaseType), typeof (DerivedType));

            var instance = container.Resolve(typeof (BaseType));

            Assert.NotNull(instance);
            Assert.IsType<DerivedType>(instance);
        }
예제 #14
0
        public frmPersonelKayitFormu()
        {
            var container = NinjectDependencyContainer.RegisterDependency(new StandardKernel());

            _personelservice = container.Get <IPersonelService>();
            _personelrepo    = container.Get <IPersonelRepository>();
            _unvanRepo       = container.Get <IUnvanRepository>();
            _cinsiyetRepo    = container.Get <ICinsiyetRepository>();
            InitializeComponent();
        }
        public FormFilmIslemleri()
        {
            var container = NinjectDependencyContainer.RegisterDependency(new StandardKernel());

            _filmRepo     = container.Get <IFilmRepository>();
            _filmTuruRepo = container.Get <IFilmTuruRepository>();
            _salonRepo    = container.Get <ISalonRepository>();
            _filmService  = container.Get <IFilmService>();
            InitializeComponent();
        }
예제 #16
0
        public ProductForm()
        {
            var container = NinjectDependencyContainer.RegisterDependency(new StandardKernel());

            _service      = container.Get <IProductService>();
            _repo         = container.Get <IProductRepository>();
            _categoryRepo = container.Get <ICategoryRepository>();

            InitializeComponent();
        }
        public FormFilmSeansSalonSec()
        {
            var container = NinjectDependencyContainer.RegisterDependency(new StandardKernel());

            _filmService = container.Get <IFilmService>();
            _filmRepo    = container.Get <IFilmRepository>();
            _seansRepo   = container.Get <ISeansRepository>();
            _salonRepo   = container.Get <ISalonRepository>();
            _giseRepo    = container.Get <IGiseRepository>();
            InitializeComponent();
        }
예제 #18
0
        public void Container_WhenRegistered_ResolvesMappedType()
        {
            var container = new NinjectDependencyContainer();

            container.RegisterType(typeof(BaseType), typeof(DerivedType));

            var instance = container.Resolve(typeof(BaseType));

            Assert.NotNull(instance);
            Assert.IsType <DerivedType>(instance);
        }
        public frmFilmKayitİslemleri()
        {
            var container = NinjectDependencyContainer.RegisterDependency(new StandardKernel());

            _filmservice = container.Get <IFilmServices>();
            _filmrepo    = container.Get <IFilmRepository>();
            _filmturRepo = container.Get <IFilmTuruRepository>();


            InitializeComponent();
        }
        public FormPersonelIslemleri()
        {
            var container = NinjectDependencyContainer.RegisterDependency(new StandardKernel());

            _personelRepo    = container.Get <IPersonelRepository>();
            _unvanRepo       = container.Get <IUnvanRepository>();
            _cinsiyetRepo    = container.Get <ICinsiyetRepository>();
            _personelService = container.Get <IPersonelService>();
            _loginRepo       = container.Get <ILoginRepository>();

            InitializeComponent();
        }
예제 #21
0
        public FormSalon4(Film f, int SeansId, int SalonId)
        {
            var container = NinjectDependencyContainer.RegisterDependency(new StandardKernel());

            //_koltukRepo = container.Get<IKoltukRepository>();
            //_gosterimRepo = container.Get<IGosterimRepository>();
            //_giseRepo = container.Get<IGiseRepository>();
            //_biletSatisRepo = container.Get<IBiletSatisRepository>();
            _uow         = container.Get <IUnitOfWork>();
            this.f       = f;
            this.SeansId = SeansId;
            this.SalonId = SalonId;
            InitializeComponent();
        }
        public frmBiletSatisIslemleri(int PersonelId)
        {
            var container = NinjectDependencyContainer.RegisterDependency(new StandardKernel());

            _gosterimservice = container.Get <IGosterimService>();
            _gosterimrepo    = container.Get <IGosterimRepository>();
            _seansRepo       = container.Get <ISeansRepository>();
            _salonRepo       = container.Get <ISalonRepository>();
            _filmRepo        = container.Get <IFilmRepository>();
            _biletRepo       = container.Get <IBiletSatisRepository>();
            _koltukRepo      = container.Get <IKoltukRepository>();
            PrsnlId          = PersonelId;
            InitializeComponent();
        }
        public frmGosterimKayitIslemleri()
        {
            var container = NinjectDependencyContainer.RegisterDependency(new StandardKernel());

            _gosterimservice = container.Get <IGosterimService>();
            _gosterimrepo    = container.Get <IGosterimRepository>();
            _seansRepo       = container.Get <ISeansRepository>();
            _salonRepo       = container.Get <ISalonRepository>();
            _filmRepo        = container.Get <IFilmRepository>();
            _biletRepo       = container.Get <IBiletSatisRepository>();
            _koltukRepo      = container.Get <IKoltukRepository>();
            //_persoRepo = container.Get<IPersonelRepository>();
            //_seyirciRepo = container.Get<ISeyirciRepository>();
            //_odemeskliRepo = container.Get<IOdemeSekliRepository>();
            InitializeComponent();
        }
예제 #24
0
        public FormBilet(Seyirci s, string filmAd, ICollection <string> koltuklar, Gosterim gosterim, int biletTur)
        {
            var container = NinjectDependencyContainer.RegisterDependency(new StandardKernel());

            //_giseRepo = container.Get<IGiseRepository>();
            //_faturaRepo = container.Get<IFaturaRepository>();
            //_biletturRepo = container.Get<IBiletTuruRepository>();
            _biletSatisRepo = container.Get <IBiletSatisRepository>();
            _seyirciRepo    = container.Get <ISeyirciRepository>();
            //_personelRepo = container.Get<IPersonelRepository>();
            _uow = container.Get <IUnitOfWork>();

            InitializeComponent();
            this.s         = s;
            this.filmAd    = filmAd;
            this.koltuklar = koltuklar;
            this.gosterim  = gosterim;
            this.biletTur  = biletTur;
        }
        public frmKoltukSecimi(Gosterim gstrm, int PersonelId)
        {
            var container = NinjectDependencyContainer.RegisterDependency(new StandardKernel());

            _biletRepo    = container.Get <IBiletSatisRepository>();
            _gosterimrepo = container.Get <IGosterimRepository>();
            _persnelRepo  = container.Get <IPersonelRepository>();
            _seyirciRepo  = container.Get <ISeyirciRepository>();
            Biletler      = _biletRepo.GetByFilter(x => x.GosterimID == gstrm.GosterimID);
            foreach (var item in Biletler)
            {
                if (item.Satıldı == true)
                {
                    koltuklar.Add(item.Koltuk.KoltukAD);
                }
            }
            secilengstrm = gstrm;
            PrsnlId      = PersonelId;
            InitializeComponent();
        }
예제 #26
0
        public FormResepsiyon()
        {
            var container = NinjectDependencyContainer.RegisterDependency(new StandardKernel());

            InitializeComponent();
        }
예제 #27
0
 public TowersGame()
 {
     Container = new NinjectDependencyContainer();
 }