Example #1
0
        private void Dependencies()
        {
            using (IKernel kernel = new StandardKernel())
            {
                kernel.Bind <IUnitofWork>().To <UnitofWork>();
                kernel.Bind <IGenderFactory>().To <GenderFactory>();

                _unitofwork    = kernel.Get <IUnitofWork>();
                _genderFactory = kernel.Get <IGenderFactory>();
            }
        }
Example #2
0
        public CommandsGender()
        {
            using (IKernel kernel = new StandardKernel())
            {
                kernel.Bind <IUnitofWork>().To <UnitofWork>();
                kernel.Bind <IGenderFactory>().To <GenderFactory>();

                _unitofwork    = kernel.Get <IUnitofWork>();
                _genderFactory = kernel.Get <IGenderFactory>();
            }
        }