public void ResourseInitialize() { _resourseRepository = new ResourseRepository(new Core.Base.Data.SqlServer.Factory.BaseContextFactory <HCRGUniversity.Core.Data.SqlServer.HCRGUniversityDBContext>()); _trainingAndSeminarRepository = new TrainingAndSeminarRepository(new Core.Base.Data.SqlServer.Factory.BaseContextFactory <HCRGUniversity.Core.Data.SqlServer.HCRGUniversityDBContext>()); _accreditationRepository = new AccreditationRepository(new Core.Base.Data.SqlServer.Factory.BaseContextFactory <HCRGUniversity.Core.Data.SqlServer.HCRGUniversityDBContext>()); _CertificationRepository = new CertificationRepository(new Core.Base.Data.SqlServer.Factory.BaseContextFactory <HCRGUniversity.Core.Data.SqlServer.HCRGUniversityDBContext>()); _termsConditionRepository = new TermsConditionRepository(new Core.Base.Data.SqlServer.Factory.BaseContextFactory <HCRGUniversity.Core.Data.SqlServer.HCRGUniversityDBContext>()); _privacyPolicyRepository = new PrivacyPolicyRepository(new Core.Base.Data.SqlServer.Factory.BaseContextFactory <HCRGUniversity.Core.Data.SqlServer.HCRGUniversityDBContext>()); _newsLetterRepository = new NewsLetterRepository(new Core.Base.Data.SqlServer.Factory.BaseContextFactory <HCRGUniversity.Core.Data.SqlServer.HCRGUniversityDBContext>()); _returnPolicyRepository = new ReturnPolicyRepository(new Core.Base.Data.SqlServer.Factory.BaseContextFactory <HCRGUniversity.Core.Data.SqlServer.HCRGUniversityDBContext>()); _deliveryTermRepository = new DeliveryTermRepository(new Core.Base.Data.SqlServer.Factory.BaseContextFactory <HCRGUniversity.Core.Data.SqlServer.HCRGUniversityDBContext>()); _organizationRepository = new OrganizationRepository(new Core.Base.Data.SqlServer.Factory.BaseContextFactory <HCRGUniversity.Core.Data.SqlServer.HCRGUniversityDBContext>()); _resourseBL = new ResourceImpl(_resourseRepository, _trainingAndSeminarRepository, _accreditationRepository, _privacyPolicyRepository, _termsConditionRepository, _newsLetterRepository, _returnPolicyRepository, _deliveryTermRepository, _CertificationRepository, _organizationRepository); }
public ResourceImpl(IResourceRepository resourseRepository , ITrainingAndSeminarRepository trainingAndSeminarRepository , IAccreditationRepository accreditationRepository , IPrivacyPolicyRepository privacyPolicyRepository , ITermsConditionRepository termsConditionRepository , INewsLetterRepository newsLetterRepository , IReturnPolicyRepository returnPolicyRepository , IDeliveryTermRepository deliveryTermRepository , ICertificationRepository certificationRepository , IOrganizationRepository organizationRepository) { _resourseRepository = resourseRepository; _trainingAndSeminarRepository = trainingAndSeminarRepository; _accreditationRepository = accreditationRepository; _privacyPolicyRepository = privacyPolicyRepository; _termsConditionRepository = termsConditionRepository; _newsLetterRepository = newsLetterRepository; _returnPolicyRepository = returnPolicyRepository; _deliveryTermRepository = deliveryTermRepository; _certificationRepository = certificationRepository; _organizationRepository = organizationRepository; }