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>(); } }
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>(); } }