public void Bootstrap(IDependencyContainer container)
        {
            // Framework "er"s
            container.RegisterSingleton<IHttpRequestHandler, HttpRequestHandler>();
            container.RegisterSingleton<IJsonSerializer, NewtonsoftJsonSerializer>();
            container.RegisterSingleton<IRouteResolver, RouteResolver>();
            container.RegisterSingleton<IParameterResolver, ParameterResolver>();
            container.RegisterSingleton<IActionInvoker, ActionInvoker>();
            container.RegisterSingleton<IOwinHandler, GenericOwinHandler>();
            container.RegisterSingleton<IServiceConfigBuilder, ServiceConfigBuilder>();
            container.RegisterSingleton<ILogger, SimpleLogger>();

            // Database
            container.RegisterTransient<IUnitOfWork, UnitOfWork>();
            container.RegisterSingleton<IUnitOfWorkStack, UnitOfWorkStack>();
            container.RegisterSingleton<IRepository, Repository>();

            // Interceptors
            container.RegisterSingleton<IActionInterceptorBuilder, MonospadActionInterceptorBuilder>();

            // Providers
            container.RegisterSingleton<IAuthProvider, AuthProvider>();
            container.RegisterSingleton<ICryptoProvider, CryptoProvider>();
            container.RegisterSingleton<IMailProvider, MailProvider>();
            container.RegisterSingleton<IServiceRouteProvider, MonospadRouteProvider>();

            // Auth
            container.RegisterSingleton<IUserService, UserService>();
            container.RegisterSingleton<INoteService, NoteService>();
        }
Example #2
0
        /// <summary>
        /// Bootstraps dependencies
        /// </summary>
        /// <param name="dependencyContainer"></param>
        public virtual void Bootstrap(IDependencyContainer dependencyContainer)
        {
            //User Table for dependency injection
            dependencyContainer.RegisterTransient <IUserService, UserService>();
            dependencyContainer.RegisterTransient <IUserRepository, UserEfRepository>();

            //Setting Table for dependency injection
            dependencyContainer.RegisterTransient <ISettingService, SettingService>();
            dependencyContainer.RegisterTransient <ISettingRepository, SettingEfRepository>();

            //UserGroup Table for dependency injection
            dependencyContainer.RegisterTransient <IUserGroupService, UserGroupService>();
            dependencyContainer.RegisterTransient <IUserGroupRepository, UserGroupEfRepository>();
        }
        /// <summary>
        /// Bootstraps dependencies
        /// </summary>
        /// <param name="dependencyContainer"></param>
        public virtual void Bootstrap(IDependencyContainer dependencyContainer)
        {
            dependencyContainer.RegisterTransient<IUnitOfWork, EFUnitOfWork>();
            dependencyContainer.RegisterTransient<IRepository, EFRepository>();
            dependencyContainer.RegisterTransient<DbContext, ProjectTemplateContext>();

            dependencyContainer.RegisterTransient<IServiceBase<Customers>, ServiceBase<Customers>>();
            dependencyContainer.RegisterTransient<IRepositoryBase<Customers>, RepositoryBase<Customers>>();
            dependencyContainer.RegisterTransient<IBusinessBase<Customers>, BusinessBase<Customers>>();
            dependencyContainer.RegisterTransient<IServiceCustomers, ServiceCustomers>();
            dependencyContainer.RegisterTransient<IRepositoryCustomers, RepositoryCustomers>();
            dependencyContainer.RegisterTransient<IBusinessCustomers, BusinessCustomers>();

            dependencyContainer.RegisterTransient<IServiceBase<Departments>, ServiceBase<Departments>>();
            dependencyContainer.RegisterTransient<IRepositoryBase<Departments>, RepositoryBase<Departments>>();
            dependencyContainer.RegisterTransient<IBusinessBase<Departments>, BusinessBase<Departments>>();
            dependencyContainer.RegisterTransient<IServiceDepartments, ServiceDepartments>();
            dependencyContainer.RegisterTransient<IRepositoryDepartments, RepositoryDepartments>();
            dependencyContainer.RegisterTransient<IBusinessDepartments, BusinessDepartments>();

            dependencyContainer.RegisterTransient<IServiceBase<Discounts>, ServiceBase<Discounts>>();
            dependencyContainer.RegisterTransient<IRepositoryBase<Discounts>, RepositoryBase<Discounts>>();
            dependencyContainer.RegisterTransient<IBusinessBase<Discounts>, BusinessBase<Discounts>>();
            dependencyContainer.RegisterTransient<IServiceDiscounts, ServiceDiscounts>();
            dependencyContainer.RegisterTransient<IRepositoryDiscounts, RepositoryDiscounts>();
            dependencyContainer.RegisterTransient<IBusinessDiscounts, BusinessDiscounts>();

            dependencyContainer.RegisterTransient<IServiceBase<HotelFeatures>, ServiceBase<HotelFeatures>>();
            dependencyContainer.RegisterTransient<IRepositoryBase<HotelFeatures>, RepositoryBase<HotelFeatures>>();
            dependencyContainer.RegisterTransient<IBusinessBase<HotelFeatures>, BusinessBase<HotelFeatures>>();
            dependencyContainer.RegisterTransient<IServiceHotelFeatures, ServiceHotelFeatures>();
            dependencyContainer.RegisterTransient<IRepositoryHotelFeatures, RepositoryHotelFeatures>();
            dependencyContainer.RegisterTransient<IBusinessHotelFeatures, BusinessHotelFeatures>();

            dependencyContainer.RegisterTransient<IServiceBase<Nationalities>, ServiceBase<Nationalities>>();
            dependencyContainer.RegisterTransient<IRepositoryBase<Nationalities>, RepositoryBase<Nationalities>>();
            dependencyContainer.RegisterTransient<IBusinessBase<Nationalities>, BusinessBase<Nationalities>>();
            dependencyContainer.RegisterTransient<IServiceNationalities, ServiceNationalities>();
            dependencyContainer.RegisterTransient<IRepositoryNationalities, RepositoryNationalities>();
            dependencyContainer.RegisterTransient<IBusinessNationalities, BusinessNationalities>();

            dependencyContainer.RegisterTransient<IServiceBase<Packets>, ServiceBase<Packets>>();
            dependencyContainer.RegisterTransient<IRepositoryBase<Packets>, RepositoryBase<Packets>>();
            dependencyContainer.RegisterTransient<IBusinessBase<Packets>, BusinessBase<Packets>>();
            dependencyContainer.RegisterTransient<IServicePackets, ServicePackets>();
            dependencyContainer.RegisterTransient<IRepositoryPackets, RepositoryPackets>();
            dependencyContainer.RegisterTransient<IBusinessPackets, BusinessPackets>();

            dependencyContainer.RegisterTransient<IServiceBase<PacketsExtraProductCategories>, ServiceBase<PacketsExtraProductCategories>>();
            dependencyContainer.RegisterTransient<IRepositoryBase<PacketsExtraProductCategories>, RepositoryBase<PacketsExtraProductCategories>>();
            dependencyContainer.RegisterTransient<IBusinessBase<PacketsExtraProductCategories>, BusinessBase<PacketsExtraProductCategories>>();
            dependencyContainer.RegisterTransient<IServicePacketsExtraProductCategories, ServicePacketsExtraProductCategories>();
            dependencyContainer.RegisterTransient<IRepositoryPacketsExtraProductCategories, RepositoryPacketsExtraProductCategories>();
            dependencyContainer.RegisterTransient<IBusinessPacketsExtraProductCategories, BusinessPacketsExtraProductCategories>();

            dependencyContainer.RegisterTransient<IServiceBase<RoomFeatures>, ServiceBase<RoomFeatures>>();
            dependencyContainer.RegisterTransient<IRepositoryBase<RoomFeatures>, RepositoryBase<RoomFeatures>>();
            dependencyContainer.RegisterTransient<IBusinessBase<RoomFeatures>, BusinessBase<RoomFeatures>>();
            dependencyContainer.RegisterTransient<IServiceRoomFeatures, ServiceRoomFeatures>();
            dependencyContainer.RegisterTransient<IRepositoryRoomFeatures, RepositoryRoomFeatures>();
            dependencyContainer.RegisterTransient<IBusinessRoomFeatures, BusinessRoomFeatures>();

            dependencyContainer.RegisterTransient<IServiceBase<RoomFeaturesRoomTypes>, ServiceBase<RoomFeaturesRoomTypes>>();
            dependencyContainer.RegisterTransient<IRepositoryBase<RoomFeaturesRoomTypes>, RepositoryBase<RoomFeaturesRoomTypes>>();
            dependencyContainer.RegisterTransient<IBusinessBase<RoomFeaturesRoomTypes>, BusinessBase<RoomFeaturesRoomTypes>>();
            dependencyContainer.RegisterTransient<IServiceRoomFeaturesRoomTypes, ServiceRoomFeaturesRoomTypes>();
            dependencyContainer.RegisterTransient<IRepositoryRoomFeaturesRoomTypes, RepositoryRoomFeaturesRoomTypes>();
            dependencyContainer.RegisterTransient<IBusinessRoomFeaturesRoomTypes, BusinessRoomFeaturesRoomTypes>();

            dependencyContainer.RegisterTransient<IServiceBase<Rooms>, ServiceBase<Rooms>>();
            dependencyContainer.RegisterTransient<IRepositoryBase<Rooms>, RepositoryBase<Rooms>>();
            dependencyContainer.RegisterTransient<IBusinessBase<Rooms>, BusinessBase<Rooms>>();
            dependencyContainer.RegisterTransient<IServiceRooms, ServiceRooms>();
            dependencyContainer.RegisterTransient<IRepositoryRooms, RepositoryRooms>();
            dependencyContainer.RegisterTransient<IBusinessRooms, BusinessRooms>();

            dependencyContainer.RegisterTransient<IServiceBase<StayingInRoom>, ServiceBase<StayingInRoom>>();
            dependencyContainer.RegisterTransient<IRepositoryBase<StayingInRoom>, RepositoryBase<StayingInRoom>>();
            dependencyContainer.RegisterTransient<IBusinessBase<StayingInRoom>, BusinessBase<StayingInRoom>>();
            dependencyContainer.RegisterTransient<IServiceStayingInRoom, ServiceStayingInRoom>();
            dependencyContainer.RegisterTransient<IRepositoryStayingInRoom, RepositoryStayingInRoom>();
            dependencyContainer.RegisterTransient<IBusinessStayingInRoom, BusinessStayingInRoom>();

            dependencyContainer.RegisterTransient<IServiceBase<Sales>, ServiceBase<Sales>>();
            dependencyContainer.RegisterTransient<IRepositoryBase<Sales>, RepositoryBase<Sales>>();
            dependencyContainer.RegisterTransient<IBusinessBase<Sales>, BusinessBase<Sales>>();
            dependencyContainer.RegisterTransient<IServiceSales, ServiceSales>();
            dependencyContainer.RegisterTransient<IRepositorySales, RepositorySales>();
            dependencyContainer.RegisterTransient<IBusinessSales, BusinessSales>();

            dependencyContainer.RegisterTransient<IServiceBase<RoomSales>, ServiceBase<RoomSales>>();
            dependencyContainer.RegisterTransient<IRepositoryBase<RoomSales>, RepositoryBase<RoomSales>>();
            dependencyContainer.RegisterTransient<IBusinessBase<RoomSales>, BusinessBase<RoomSales>>();
            dependencyContainer.RegisterTransient<IServiceRoomSales, ServiceRoomSales>();
            dependencyContainer.RegisterTransient<IRepositoryRoomSales, RepositoryRoomSales>();
            dependencyContainer.RegisterTransient<IBusinessRoomSales, BusinessRoomSales>();

            dependencyContainer.RegisterTransient<IServiceBase<PaymentMethods>, ServiceBase<PaymentMethods>>();
            dependencyContainer.RegisterTransient<IRepositoryBase<PaymentMethods>, RepositoryBase<PaymentMethods>>();
            dependencyContainer.RegisterTransient<IBusinessBase<PaymentMethods>, BusinessBase<PaymentMethods>>();
            dependencyContainer.RegisterTransient<IServicePaymentMethods, ServicePaymentMethods>();
            dependencyContainer.RegisterTransient<IRepositoryPaymentMethods, RepositoryPaymentMethods>();
            dependencyContainer.RegisterTransient<IBusinessPaymentMethods, BusinessPaymentMethods>();

            dependencyContainer.RegisterTransient<IServiceBase<SaleExtras>, ServiceBase<SaleExtras>>();
            dependencyContainer.RegisterTransient<IRepositoryBase<SaleExtras>, RepositoryBase<SaleExtras>>();
            dependencyContainer.RegisterTransient<IBusinessBase<SaleExtras>, BusinessBase<SaleExtras>>();
            dependencyContainer.RegisterTransient<IServiceSaleExtras, ServiceSaleExtras>();
            dependencyContainer.RegisterTransient<IRepositorySaleExtras, RepositorySaleExtras>();
            dependencyContainer.RegisterTransient<IBusinessSaleExtras, BusinessSaleExtras>();

            dependencyContainer.RegisterTransient<IServiceBase<ExtraProducts>, ServiceBase<ExtraProducts>>();
            dependencyContainer.RegisterTransient<IRepositoryBase<ExtraProducts>, RepositoryBase<ExtraProducts>>();
            dependencyContainer.RegisterTransient<IBusinessBase<ExtraProducts>, BusinessBase<ExtraProducts>>();
            dependencyContainer.RegisterTransient<IServiceExtraProducts, ServiceExtraProducts>();
            dependencyContainer.RegisterTransient<IRepositoryExtraProducts, RepositoryExtraProducts>();
            dependencyContainer.RegisterTransient<IBusinessExtraProducts, BusinessExtraProducts>();

            dependencyContainer.RegisterTransient<IServiceBase<ExtraProductCategories>, ServiceBase<ExtraProductCategories>>();
            dependencyContainer.RegisterTransient<IRepositoryBase<ExtraProductCategories>, RepositoryBase<ExtraProductCategories>>();
            dependencyContainer.RegisterTransient<IBusinessBase<ExtraProductCategories>, BusinessBase<ExtraProductCategories>>();
            dependencyContainer.RegisterTransient<IServiceExtraProductCategories, ServiceExtraProductCategories>();
            dependencyContainer.RegisterTransient<IRepositoryExtraProductCategories, RepositoryExtraProductCategories>();
            dependencyContainer.RegisterTransient<IBusinessExtraProductCategories, BusinessExtraProductCategories>();

            dependencyContainer.RegisterTransient<IServiceBase<RoomTypes>, ServiceBase<RoomTypes>>();
            dependencyContainer.RegisterTransient<IRepositoryBase<RoomTypes>, RepositoryBase<RoomTypes>>();
            dependencyContainer.RegisterTransient<IBusinessBase<RoomTypes>, BusinessBase<RoomTypes>>();
            dependencyContainer.RegisterTransient<IServiceRoomTypes, ServiceRoomTypes>();
            dependencyContainer.RegisterTransient<IRepositoryRoomTypes, RepositoryRoomTypes>();
            dependencyContainer.RegisterTransient<IBusinessRoomTypes, BusinessRoomTypes>();

            dependencyContainer.RegisterTransient<IServiceBase<Shifts>, ServiceBase<Shifts>>();
            dependencyContainer.RegisterTransient<IRepositoryBase<Shifts>, RepositoryBase<Shifts>>();
            dependencyContainer.RegisterTransient<IBusinessBase<Shifts>, BusinessBase<Shifts>>();
            dependencyContainer.RegisterTransient<IServiceShifts, ServiceShifts>();
            dependencyContainer.RegisterTransient<IRepositoryShifts, RepositoryShifts>();
            dependencyContainer.RegisterTransient<IBusinessShifts, BusinessShifts>();

            dependencyContainer.RegisterTransient<IServiceBase<RoomStatuses>, ServiceBase<RoomStatuses>>();
            dependencyContainer.RegisterTransient<IRepositoryBase<RoomStatuses>, RepositoryBase<RoomStatuses>>();
            dependencyContainer.RegisterTransient<IBusinessBase<RoomStatuses>, BusinessBase<RoomStatuses>>();
            dependencyContainer.RegisterTransient<IServiceRoomStatuses, ServiceRoomStatuses>();
            dependencyContainer.RegisterTransient<IRepositoryRoomStatuses, RepositoryRoomStatuses>();
            dependencyContainer.RegisterTransient<IBusinessRoomStatuses, BusinessRoomStatuses>();

            dependencyContainer.RegisterTransient<IServiceBase<BlockFloors>, ServiceBase<BlockFloors>>();
            dependencyContainer.RegisterTransient<IRepositoryBase<BlockFloors>, RepositoryBase<BlockFloors>>();
            dependencyContainer.RegisterTransient<IBusinessBase<BlockFloors>, BusinessBase<BlockFloors>>();
            dependencyContainer.RegisterTransient<IServiceBlockFloors, ServiceBlockFloors>();
            dependencyContainer.RegisterTransient<IRepositoryBlockFloors, RepositoryBlockFloors>();
            dependencyContainer.RegisterTransient<IBusinessBlockFloors, BusinessBlockFloors>();

            dependencyContainer.RegisterTransient<IServiceBase<Statuses>, ServiceBase<Statuses>>();
            dependencyContainer.RegisterTransient<IRepositoryBase<Statuses>, RepositoryBase<Statuses>>();
            dependencyContainer.RegisterTransient<IBusinessBase<Statuses>, BusinessBase<Statuses>>();
            dependencyContainer.RegisterTransient<IServiceStatuses, ServiceStatuses>();
            dependencyContainer.RegisterTransient<IRepositoryStatuses, RepositoryStatuses>();
            dependencyContainer.RegisterTransient<IBusinessStatuses, BusinessStatuses>();

            dependencyContainer.RegisterTransient<IServiceBase<Blocks>, ServiceBase<Blocks>>();
            dependencyContainer.RegisterTransient<IRepositoryBase<Blocks>, RepositoryBase<Blocks>>();
            dependencyContainer.RegisterTransient<IBusinessBase<Blocks>, BusinessBase<Blocks>>();
            dependencyContainer.RegisterTransient<IServiceBlocks, ServiceBlocks>();
            dependencyContainer.RegisterTransient<IRepositoryBlocks, RepositoryBlocks>();
            dependencyContainer.RegisterTransient<IBusinessBlocks, BusinessBlocks>();

            dependencyContainer.RegisterTransient<IServiceBase<Employees>, ServiceBase<Employees>>();
            dependencyContainer.RegisterTransient<IRepositoryBase<Employees>, RepositoryBase<Employees>>();
            dependencyContainer.RegisterTransient<IBusinessBase<Employees>, BusinessBase<Employees>>();
            dependencyContainer.RegisterTransient<IServiceEmployees, ServiceEmployees>();
            dependencyContainer.RegisterTransient<IRepositoryEmployees, RepositoryEmployees>();
            dependencyContainer.RegisterTransient<IBusinessEmployees, BusinessEmployees>();

            dependencyContainer.RegisterTransient<IServiceBase<EmployeeShifts>, ServiceBase<EmployeeShifts>>();
            dependencyContainer.RegisterTransient<IRepositoryBase<EmployeeShifts>, RepositoryBase<EmployeeShifts>>();
            dependencyContainer.RegisterTransient<IBusinessBase<EmployeeShifts>, BusinessBase<EmployeeShifts>>();
            dependencyContainer.RegisterTransient<IServiceEmployeeShifts, ServiceEmployeeShifts>();
            dependencyContainer.RegisterTransient<IRepositoryEmployeeShifts, RepositoryEmployeeShifts>();
            dependencyContainer.RegisterTransient<IBusinessEmployeeShifts, BusinessEmployeeShifts>();

            dependencyContainer.RegisterTransient<IServiceBase<Floors>, ServiceBase<Floors>>();
            dependencyContainer.RegisterTransient<IRepositoryBase<Floors>, RepositoryBase<Floors>>();
            dependencyContainer.RegisterTransient<IBusinessBase<Floors>, BusinessBase<Floors>>();
            dependencyContainer.RegisterTransient<IServiceFloors, ServiceFloors>();
            dependencyContainer.RegisterTransient<IRepositoryFloors, RepositoryFloors>();
            dependencyContainer.RegisterTransient<IBusinessFloors, BusinessFloors>();

            dependencyContainer.RegisterTransient<IServiceBase<GroupsOfEmployee>, ServiceBase<GroupsOfEmployee>>();
            dependencyContainer.RegisterTransient<IRepositoryBase<GroupsOfEmployee>, RepositoryBase<GroupsOfEmployee>>();
            dependencyContainer.RegisterTransient<IBusinessBase<GroupsOfEmployee>, BusinessBase<GroupsOfEmployee>>();
            dependencyContainer.RegisterTransient<IServiceGroupsOfEmployee, ServiceGroupsOfEmployee>();
            dependencyContainer.RegisterTransient<IRepositoryGroupsOfEmployee, RepositoryGroupsOfEmployee>();
            dependencyContainer.RegisterTransient<IBusinessGroupsOfEmployee, BusinessGroupsOfEmployee>();

            dependencyContainer.RegisterTransient<IServiceBase<Permits>, ServiceBase<Permits>>();
            dependencyContainer.RegisterTransient<IRepositoryBase<Permits>, RepositoryBase<Permits>>();
            dependencyContainer.RegisterTransient<IBusinessBase<Permits>, BusinessBase<Permits>>();
            dependencyContainer.RegisterTransient<IServicePermits, ServicePermits>();
            dependencyContainer.RegisterTransient<IRepositoryPermits, RepositoryPermits>();
            dependencyContainer.RegisterTransient<IBusinessPermits, BusinessPermits>();

            dependencyContainer.RegisterTransient<IServiceBase<PermitTypes>, ServiceBase<PermitTypes>>();
            dependencyContainer.RegisterTransient<IRepositoryBase<PermitTypes>, RepositoryBase<PermitTypes>>();
            dependencyContainer.RegisterTransient<IBusinessBase<PermitTypes>, BusinessBase<PermitTypes>>();
            dependencyContainer.RegisterTransient<IServicePermitTypes, ServicePermitTypes>();
            dependencyContainer.RegisterTransient<IRepositoryPermitTypes, RepositoryPermitTypes>();
            dependencyContainer.RegisterTransient<IBusinessPermitTypes, BusinessPermitTypes>();

            dependencyContainer.RegisterTransient<IServiceBase<ReserveCancelLog>, ServiceBase<ReserveCancelLog>>();
            dependencyContainer.RegisterTransient<IRepositoryBase<ReserveCancelLog>, RepositoryBase<ReserveCancelLog>>();
            dependencyContainer.RegisterTransient<IBusinessBase<ReserveCancelLog>, BusinessBase<ReserveCancelLog>>();
            dependencyContainer.RegisterTransient<IServiceReserveCancelLog, ServiceReserveCancelLog>();
            dependencyContainer.RegisterTransient<IRepositoryReserveCancelLog, RepositoryReserveCancelLog>();
            dependencyContainer.RegisterTransient<IBusinessReserveCancelLog, BusinessReserveCancelLog>();

            dependencyContainer.RegisterTransient<IServiceBase<Users>, ServiceBase<Users>>();
            dependencyContainer.RegisterTransient<IRepositoryBase<Users>, RepositoryBase<Users>>();
            dependencyContainer.RegisterTransient<IBusinessBase<Users>, BusinessBase<Users>>();
            dependencyContainer.RegisterTransient<IServiceUsers, ServiceUsers>();
            dependencyContainer.RegisterTransient<IRepositoryUsers, RepositoryUsers>();
            dependencyContainer.RegisterTransient<IBusinessUsers, BusinessUsers>();

            dependencyContainer.RegisterTransient<IServiceBase<UserAuthorities>, ServiceBase<UserAuthorities>>();
            dependencyContainer.RegisterTransient<IRepositoryBase<UserAuthorities>, RepositoryBase<UserAuthorities>>();
            dependencyContainer.RegisterTransient<IBusinessBase<UserAuthorities>, BusinessBase<UserAuthorities>>();
            dependencyContainer.RegisterTransient<IServiceUserAuthoritys, ServiceUserAuthoritys>();
            dependencyContainer.RegisterTransient<IRepositoryUserAuthoritys, RepositoryUserAuthoritys>();
            dependencyContainer.RegisterTransient<IBusinessUserAuthoritys, BusinessUserAuthoritys>();

            dependencyContainer.RegisterTransient<IServiceBase<Authorities>, ServiceBase<Authorities>>();
            dependencyContainer.RegisterTransient<IRepositoryBase<Authorities>, RepositoryBase<Authorities>>();
            dependencyContainer.RegisterTransient<IBusinessBase<Authorities>, BusinessBase<Authorities>>();
            dependencyContainer.RegisterTransient<IServiceAuthoritys, ServiceAuthoritys>();
            dependencyContainer.RegisterTransient<IRepositoryAuthoritys, RepositoryAuthoritys>();
            dependencyContainer.RegisterTransient<IBusinessAuthoritys, BusinessAuthoritys>();
        }
        /// <summary>
        /// Bootstraps dependencies
        /// </summary>
        /// <param name="dependencyContainer"></param>
        public virtual void Bootstrap(IDependencyContainer dependencyContainer)
        {
            dependencyContainer.RegisterTransient <IUnitOfWork, EFUnitOfWork>();
            dependencyContainer.RegisterTransient <IRepository, EFRepository>();
            dependencyContainer.RegisterTransient <DbContext, ProjectTemplateContext>();

            dependencyContainer.RegisterTransient <IServiceBase <JobInterview>, ServiceBase <JobInterview> >();
            dependencyContainer.RegisterTransient <IRepositoryBase <JobInterview>, RepositoryBase <JobInterview> >();
            dependencyContainer.RegisterTransient <IBusinessBase <JobInterview>, BusinessBase <JobInterview> >();
            dependencyContainer.RegisterTransient <IServiceJobInterview, ServiceJobInterview>();
            dependencyContainer.RegisterTransient <IRepositoryJobInterview, RepositoryJobInterview>();
            dependencyContainer.RegisterTransient <IBusinessJobInterview, BusinessJobInterview>();

            dependencyContainer.RegisterTransient <IServiceBase <Firm>, ServiceBase <Firm> >();
            dependencyContainer.RegisterTransient <IRepositoryBase <Firm>, RepositoryBase <Firm> >();
            dependencyContainer.RegisterTransient <IBusinessBase <Firm>, BusinessBase <Firm> >();
            dependencyContainer.RegisterTransient <IServiceFirm, ServiceFirm>();
            dependencyContainer.RegisterTransient <IRepositoryFirm, RepositoryFirm>();
            dependencyContainer.RegisterTransient <IBusinessFirm, BusinessFirm>();

            dependencyContainer.RegisterTransient <IServiceBase <EmploymentStatus>, ServiceBase <EmploymentStatus> >();
            dependencyContainer.RegisterTransient <IRepositoryBase <EmploymentStatus>, RepositoryBase <EmploymentStatus> >();
            dependencyContainer.RegisterTransient <IBusinessBase <EmploymentStatus>, BusinessBase <EmploymentStatus> >();
            dependencyContainer.RegisterTransient <IServiceEmploymentStatus, ServiceState>();
            dependencyContainer.RegisterTransient <IRepositoryEmploymentStatus, RepositoryEmploymentStatus>();
            dependencyContainer.RegisterTransient <IBusinessEmploymentStatus, BusinessState>();

            dependencyContainer.RegisterTransient <IServiceBase <Trainee>, ServiceBase <Trainee> >();
            dependencyContainer.RegisterTransient <IRepositoryBase <Trainee>, RepositoryBase <Trainee> >();
            dependencyContainer.RegisterTransient <IBusinessBase <Trainee>, BusinessBase <Trainee> >();
            dependencyContainer.RegisterTransient <IServiceTrainee, ServiceTrainee>();
            dependencyContainer.RegisterTransient <IRepositoryTrainee, RepositoryTrainee>();
            dependencyContainer.RegisterTransient <IBusinessTrainee, BusinessTrainee>();

            dependencyContainer.RegisterTransient <IServiceBase <Department>, ServiceBase <Department> >();
            dependencyContainer.RegisterTransient <IRepositoryBase <Department>, RepositoryBase <Department> >();
            dependencyContainer.RegisterTransient <IBusinessBase <Department>, BusinessBase <Department> >();
            dependencyContainer.RegisterTransient <IServiceDepartment, ServiceDepartment>();
            dependencyContainer.RegisterTransient <IRepositoryDepartment, RepositoryDepartment>();
            dependencyContainer.RegisterTransient <IBusinessDepartment, BusinessDepartment>();


            dependencyContainer.RegisterTransient <IServiceBase <City>, ServiceBase <City> >();
            dependencyContainer.RegisterTransient <IRepositoryBase <City>, RepositoryBase <City> >();
            dependencyContainer.RegisterTransient <IBusinessBase <City>, BusinessBase <City> >();
            dependencyContainer.RegisterTransient <IServiceCity, ServiceCity>();
            dependencyContainer.RegisterTransient <IRepositoryCity, RepositoryCity>();
            dependencyContainer.RegisterTransient <IBusinessCity, BusinessCity>();

            dependencyContainer.RegisterTransient <IServiceBase <Classroom>, ServiceBase <Classroom> >();
            dependencyContainer.RegisterTransient <IRepositoryBase <Classroom>, RepositoryBase <Classroom> >();
            dependencyContainer.RegisterTransient <IBusinessBase <Classroom>, BusinessBase <Classroom> >();
            dependencyContainer.RegisterTransient <IServiceClassroom, ServiceClassroom>();
            dependencyContainer.RegisterTransient <IRepositoryClassroom, RepositoryClassroom>();
            dependencyContainer.RegisterTransient <IBusinessClassroom, BusinessClassroom>();

            dependencyContainer.RegisterTransient <IServiceBase <IskurClassroom>, ServiceBase <IskurClassroom> >();
            dependencyContainer.RegisterTransient <IRepositoryBase <IskurClassroom>, RepositoryBase <IskurClassroom> >();
            dependencyContainer.RegisterTransient <IBusinessBase <IskurClassroom>, BusinessBase <IskurClassroom> >();
            dependencyContainer.RegisterTransient <IServiceIskurClassroom, ServiceIskurClassroom>();
            dependencyContainer.RegisterTransient <IRepositoryIskurClassroom, RepositoryIskurClassroom>();
            dependencyContainer.RegisterTransient <IBusinessIskurClassroom, BusinessIskurClassroom>();

            dependencyContainer.RegisterTransient <IServiceBase <Education>, ServiceBase <Education> >();
            dependencyContainer.RegisterTransient <IRepositoryBase <Education>, RepositoryBase <Education> >();
            dependencyContainer.RegisterTransient <IBusinessBase <Education>, BusinessBase <Education> >();
            dependencyContainer.RegisterTransient <IServiceEducation, ServiceEducation>();
            dependencyContainer.RegisterTransient <IRepositoryEducation, RepositoryEducation>();
            dependencyContainer.RegisterTransient <IBusinessEducation, BusinessEducation>();

            dependencyContainer.RegisterTransient <IServiceBase <EmployeeType>, ServiceBase <EmployeeType> >();
            dependencyContainer.RegisterTransient <IRepositoryBase <EmployeeType>, RepositoryBase <EmployeeType> >();
            dependencyContainer.RegisterTransient <IBusinessBase <EmployeeType>, BusinessBase <EmployeeType> >();
            dependencyContainer.RegisterTransient <IServiceEmployeeType, ServiceEmployeeType>();
            dependencyContainer.RegisterTransient <IRepositoryEmployeeType, RepositoryEmployeeType>();
            dependencyContainer.RegisterTransient <IBusinessEmployeeType, BusinessEmployeeType>();


            dependencyContainer.RegisterTransient <IServiceBase <Branch>, ServiceBase <Branch> >();
            dependencyContainer.RegisterTransient <IRepositoryBase <Branch>, RepositoryBase <Branch> >();
            dependencyContainer.RegisterTransient <IBusinessBase <Branch>, BusinessBase <Branch> >();
            dependencyContainer.RegisterTransient <IServiceBranch, ServiceBranch>();
            dependencyContainer.RegisterTransient <IRepositoryBranch, RepositoryBranch>();
            dependencyContainer.RegisterTransient <IBusinessBranch, BusinessBranch>();

            dependencyContainer.RegisterTransient <IServiceBase <TraineeStatus>, ServiceBase <TraineeStatus> >();
            dependencyContainer.RegisterTransient <IRepositoryBase <TraineeStatus>, RepositoryBase <TraineeStatus> >();
            dependencyContainer.RegisterTransient <IBusinessBase <TraineeStatus>, BusinessBase <TraineeStatus> >();
            dependencyContainer.RegisterTransient <IServiceTraineeStatus, ServiceTraineeStatus>();
            dependencyContainer.RegisterTransient <IRepositoryTraineeStatus, RepositoryTraineeStatus>();
            dependencyContainer.RegisterTransient <IBusinessTraineeStatus, BusinessTraineeStatus>();


            dependencyContainer.RegisterTransient <IServiceBase <TraineeEmploymentStatus>, ServiceBase <TraineeEmploymentStatus> >();
            dependencyContainer.RegisterTransient <IRepositoryBase <TraineeEmploymentStatus>, RepositoryBase <TraineeEmploymentStatus> >();
            dependencyContainer.RegisterTransient <IBusinessBase <TraineeEmploymentStatus>, BusinessBase <TraineeEmploymentStatus> >();
            dependencyContainer.RegisterTransient <IServiceTraineeEmploymentStatus, ServiceTraineeEmploymentStatus>();
            dependencyContainer.RegisterTransient <IRepositoryTraineeEmploymentStatus, RepositoryTraineeEmploymentStatus>();
            dependencyContainer.RegisterTransient <IBusinessTraineeEmploymentStatus, BusinessTraineeEmploymentStatus>();


            dependencyContainer.RegisterTransient <IServiceBase <Employee>, ServiceBase <Employee> >();
            dependencyContainer.RegisterTransient <IRepositoryBase <Employee>, RepositoryBase <Employee> >();
            dependencyContainer.RegisterTransient <IBusinessBase <Employee>, BusinessBase <Employee> >();
            dependencyContainer.RegisterTransient <IServiceEmployee, ServiceEmployee>();
            dependencyContainer.RegisterTransient <IRepositoryEmployee, RepositoryEmployee>();
            dependencyContainer.RegisterTransient <IBusinessEmployee, BusinessTeacher>();

            dependencyContainer.RegisterTransient <IServiceBase <EmployeeHistory>, ServiceBase <EmployeeHistory> >();
            dependencyContainer.RegisterTransient <IRepositoryBase <EmployeeHistory>, RepositoryBase <EmployeeHistory> >();
            dependencyContainer.RegisterTransient <IBusinessBase <EmployeeHistory>, BusinessBase <EmployeeHistory> >();
            dependencyContainer.RegisterTransient <IServiceEmployeeHistory, ServiceEmployeeHistory>();
            dependencyContainer.RegisterTransient <IRepositoryEmployeeHistory, RepositoryEmployeeHistory>();
            dependencyContainer.RegisterTransient <IBusinessEmployeeHistory, BusinessEmployeeHistory>();

            dependencyContainer.RegisterTransient <IServiceBase <ControlEnt>, ServiceBase <ControlEnt> >();
            dependencyContainer.RegisterTransient <IRepositoryBase <ControlEnt>, RepositoryBase <ControlEnt> >();
            dependencyContainer.RegisterTransient <IBusinessBase <ControlEnt>, BusinessBase <ControlEnt> >();
            dependencyContainer.RegisterTransient <IServiceControl, ServiceControl>();
            dependencyContainer.RegisterTransient <IRepositoryControl, RepositoryControl>();
            dependencyContainer.RegisterTransient <IBusinessControl, BusinessControl>();

            dependencyContainer.RegisterTransient <IServiceBase <DataTypeEnt>, ServiceBase <DataTypeEnt> >();
            dependencyContainer.RegisterTransient <IRepositoryBase <DataTypeEnt>, RepositoryBase <DataTypeEnt> >();
            dependencyContainer.RegisterTransient <IBusinessBase <DataTypeEnt>, BusinessBase <DataTypeEnt> >();
            dependencyContainer.RegisterTransient <IServiceDataType, ServiceDataType>();
            dependencyContainer.RegisterTransient <IRepositoryDataType, RepositoryDataType>();
            dependencyContainer.RegisterTransient <IBusinessDataType, BusinessDataType>();

            dependencyContainer.RegisterTransient <IServiceBase <TraineeEmploymentStatusField>, ServiceBase <TraineeEmploymentStatusField> >();
            dependencyContainer.RegisterTransient <IRepositoryBase <TraineeEmploymentStatusField>, RepositoryBase <TraineeEmploymentStatusField> >();
            dependencyContainer.RegisterTransient <IBusinessBase <TraineeEmploymentStatusField>, BusinessBase <TraineeEmploymentStatusField> >();
            dependencyContainer.RegisterTransient <IServiceTraineeEmploymentStatusField, ServiceTraineeEmploymentStatusField>();
            dependencyContainer.RegisterTransient <IRepositoryTraineeEmploymentStatusField, RepositoryTraineeEmploymentStatusField>();
            dependencyContainer.RegisterTransient <IBusinessTraineeEmploymentStatusField, BusinessTraineeEmploymentStatusField>();

            dependencyContainer.RegisterTransient <IServiceBase <TraineeEmploymentStatusReason>,
                                                   ServiceBase <TraineeEmploymentStatusReason> >();
            dependencyContainer.RegisterTransient <IRepositoryBase <TraineeEmploymentStatusReason>, RepositoryBase <TraineeEmploymentStatusReason> >();
            dependencyContainer.RegisterTransient <IBusinessBase <TraineeEmploymentStatusReason>, BusinessBase <TraineeEmploymentStatusReason> >();
            dependencyContainer.RegisterTransient <IServiceTraineeEmploymentStatusReason, ServiceTraineeEmploymentStatusReason>();
            dependencyContainer.RegisterTransient <IRepositoryTraineeEmploymentStatusReason, RepositoryTraineeEmploymentStatusReason>();
            dependencyContainer.RegisterTransient <IBusinessTraineeEmploymentStatusReason, BusinessTraineeEmploymentStatusReason>();

            dependencyContainer.RegisterTransient <IServiceBase <TraineeEmploymentStatusReasonDetail>, ServiceBase <TraineeEmploymentStatusReasonDetail> >();
            dependencyContainer.RegisterTransient <IRepositoryBase <TraineeEmploymentStatusReasonDetail>, RepositoryBase <TraineeEmploymentStatusReasonDetail> >();
            dependencyContainer.RegisterTransient <IBusinessBase <TraineeEmploymentStatusReasonDetail>, BusinessBase <TraineeEmploymentStatusReasonDetail> >();
            dependencyContainer.RegisterTransient <IServiceTraineeEmploymentStatusReasonDetail, ServiceTraineeEmploymentStatusReasonDetail>();
            dependencyContainer.RegisterTransient <IRepositoryTraineeEmploymentStatusReasonDetail, RepositoryTraineeEmploymentStatusReasonDetail>();
            dependencyContainer.RegisterTransient <IBusinessTraineeEmploymentStatusReasonDetail, BusinessTraineeEmploymentStatusReasonDetail>();
        }
        /// <summary>
        /// Bootstraps dependencies
        /// </summary>
        /// <param name="dependencyContainer"></param>
        public virtual void Bootstrap(IDependencyContainer dependencyContainer)
        {
            dependencyContainer.RegisterTransient<IUnitOfWork, EFUnitOfWork>();
            dependencyContainer.RegisterTransient<IRepository, EFRepository>();
            dependencyContainer.RegisterTransient<DbContext, ProjectTemplateContext>();

            dependencyContainer.RegisterTransient<IServiceBase<Student>, ServiceBase<Student>>();
            dependencyContainer.RegisterTransient<IRepositoryBase<Student>, RepositoryBase<Student>>();
            dependencyContainer.RegisterTransient<IBusinessBase<Student>, BusinessBase<Student>>();

            dependencyContainer.RegisterTransient<IServiceStudent, ServiceStudent>();
            dependencyContainer.RegisterTransient<IRepositoryStudent, RepositoryStudent>();
            dependencyContainer.RegisterTransient<IBusinessStudent, BusinessStudent>();

            dependencyContainer.RegisterTransient<IServiceBase<Firm>, ServiceBase<Firm>>();
            dependencyContainer.RegisterTransient<IRepositoryBase<Firm>, RepositoryBase<Firm>>();
            dependencyContainer.RegisterTransient<IBusinessBase<Firm>, BusinessBase<Firm>>();
            dependencyContainer.RegisterTransient<IServiceFirm, ServiceFirm>();
            dependencyContainer.RegisterTransient<IRepositoryFirm, RepositoryFirm>();
            dependencyContainer.RegisterTransient<IBusinessFirm, BusinessFirm>();

            dependencyContainer.RegisterTransient<IServiceBase<User>, ServiceBase<User>>();
            dependencyContainer.RegisterTransient<IRepositoryBase<User>, RepositoryBase<User>>();
            dependencyContainer.RegisterTransient<IBusinessBase<User>, BusinessBase<User>>();
            dependencyContainer.RegisterTransient<IServiceUser, ServiceUser>();
            dependencyContainer.RegisterTransient<IRepositoryUser, RepositoryUser>();
            dependencyContainer.RegisterTransient<IBusinessUser, BusinessUser>();

            dependencyContainer.RegisterTransient<IServiceBase<Actor>, ServiceBase<Actor>>();
            dependencyContainer.RegisterTransient<IRepositoryBase<Actor>, RepositoryBase<Actor>>();
            dependencyContainer.RegisterTransient<IBusinessBase<Actor>, BusinessBase<Actor>>();
            dependencyContainer.RegisterTransient<IServiceActor, ServiceActor>();
            dependencyContainer.RegisterTransient<IRepositoryActor, RepositoryActor>();
            dependencyContainer.RegisterTransient<IBusinessActor, BusinessActor>();

            dependencyContainer.RegisterTransient<IServiceBase<Director>, ServiceBase<Director>>();
            dependencyContainer.RegisterTransient<IRepositoryBase<Director>, RepositoryBase<Director>>();
            dependencyContainer.RegisterTransient<IBusinessBase<Director>, BusinessBase<Director>>();
            dependencyContainer.RegisterTransient<IServiceDirector, ServiceDirector>();
            dependencyContainer.RegisterTransient<IRepositoryDirector, RepositoryDirector>();
            dependencyContainer.RegisterTransient<IBusinessDirector, BusinessDirector>();
        }
        /// <summary>
        /// Bootstraps dependencies
        /// </summary>
        /// <param name="dependencyContainer"></param>
        public virtual void Bootstrap(IDependencyContainer dependencyContainer)
        {
            dependencyContainer.RegisterTransient<IUnitOfWork, EFUnitOfWork>();
            dependencyContainer.RegisterTransient<IRepository, EFRepository>();
            dependencyContainer.RegisterTransient<DbContext, ProjectTemplateContext>();

            dependencyContainer.RegisterTransient<IServiceBase<JobInterview>, ServiceBase<JobInterview>>();
            dependencyContainer.RegisterTransient<IRepositoryBase<JobInterview>, RepositoryBase<JobInterview>>();
            dependencyContainer.RegisterTransient<IBusinessBase<JobInterview>, BusinessBase<JobInterview>>();
            dependencyContainer.RegisterTransient<IServiceJobInterview, ServiceJobInterview>();
            dependencyContainer.RegisterTransient<IRepositoryJobInterview, RepositoryJobInterview>();
            dependencyContainer.RegisterTransient<IBusinessJobInterview, BusinessJobInterview>();

            dependencyContainer.RegisterTransient<IServiceBase<Firm>, ServiceBase<Firm>>();
            dependencyContainer.RegisterTransient<IRepositoryBase<Firm>, RepositoryBase<Firm>>();
            dependencyContainer.RegisterTransient<IBusinessBase<Firm>, BusinessBase<Firm>>();
            dependencyContainer.RegisterTransient<IServiceFirm, ServiceFirm>();
            dependencyContainer.RegisterTransient<IRepositoryFirm, RepositoryFirm>();
            dependencyContainer.RegisterTransient<IBusinessFirm, BusinessFirm>();

            dependencyContainer.RegisterTransient<IServiceBase<EmploymentStatus>, ServiceBase<EmploymentStatus>>();
            dependencyContainer.RegisterTransient<IRepositoryBase<EmploymentStatus>, RepositoryBase<EmploymentStatus>>();
            dependencyContainer.RegisterTransient<IBusinessBase<EmploymentStatus>, BusinessBase<EmploymentStatus>>();
            dependencyContainer.RegisterTransient<IServiceEmploymentStatus, ServiceState>();
            dependencyContainer.RegisterTransient<IRepositoryEmploymentStatus, RepositoryEmploymentStatus>();
            dependencyContainer.RegisterTransient<IBusinessEmploymentStatus, BusinessState>();

            dependencyContainer.RegisterTransient<IServiceBase<Trainee>, ServiceBase<Trainee>>();
            dependencyContainer.RegisterTransient<IRepositoryBase<Trainee>, RepositoryBase<Trainee>>();
            dependencyContainer.RegisterTransient<IBusinessBase<Trainee>, BusinessBase<Trainee>>();
            dependencyContainer.RegisterTransient<IServiceTrainee, ServiceTrainee>();
            dependencyContainer.RegisterTransient<IRepositoryTrainee, RepositoryTrainee>();
            dependencyContainer.RegisterTransient<IBusinessTrainee, BusinessTrainee>();

            dependencyContainer.RegisterTransient<IServiceBase<Department>, ServiceBase<Department>>();
            dependencyContainer.RegisterTransient<IRepositoryBase<Department>, RepositoryBase<Department>>();
            dependencyContainer.RegisterTransient<IBusinessBase<Department>, BusinessBase<Department>>();
            dependencyContainer.RegisterTransient<IServiceDepartment, ServiceDepartment>();
            dependencyContainer.RegisterTransient<IRepositoryDepartment, RepositoryDepartment>();
            dependencyContainer.RegisterTransient<IBusinessDepartment, BusinessDepartment>();

            dependencyContainer.RegisterTransient<IServiceBase<City>, ServiceBase<City>>();
            dependencyContainer.RegisterTransient<IRepositoryBase<City>, RepositoryBase<City>>();
            dependencyContainer.RegisterTransient<IBusinessBase<City>, BusinessBase<City>>();
            dependencyContainer.RegisterTransient<IServiceCity, ServiceCity>();
            dependencyContainer.RegisterTransient<IRepositoryCity, RepositoryCity>();
            dependencyContainer.RegisterTransient<IBusinessCity, BusinessCity>();

            dependencyContainer.RegisterTransient<IServiceBase<Classroom>, ServiceBase<Classroom>>();
            dependencyContainer.RegisterTransient<IRepositoryBase<Classroom>, RepositoryBase<Classroom>>();
            dependencyContainer.RegisterTransient<IBusinessBase<Classroom>, BusinessBase<Classroom>>();
            dependencyContainer.RegisterTransient<IServiceClassroom, ServiceClassroom>();
            dependencyContainer.RegisterTransient<IRepositoryClassroom, RepositoryClassroom>();
            dependencyContainer.RegisterTransient<IBusinessClassroom, BusinessClassroom>();

            dependencyContainer.RegisterTransient<IServiceBase<IskurClassroom>, ServiceBase<IskurClassroom>>();
            dependencyContainer.RegisterTransient<IRepositoryBase<IskurClassroom>, RepositoryBase<IskurClassroom>>();
            dependencyContainer.RegisterTransient<IBusinessBase<IskurClassroom>, BusinessBase<IskurClassroom>>();
            dependencyContainer.RegisterTransient<IServiceIskurClassroom, ServiceIskurClassroom>();
            dependencyContainer.RegisterTransient<IRepositoryIskurClassroom, RepositoryIskurClassroom>();
            dependencyContainer.RegisterTransient<IBusinessIskurClassroom, BusinessIskurClassroom>();

            dependencyContainer.RegisterTransient<IServiceBase<Education>, ServiceBase<Education>>();
            dependencyContainer.RegisterTransient<IRepositoryBase<Education>, RepositoryBase<Education>>();
            dependencyContainer.RegisterTransient<IBusinessBase<Education>, BusinessBase<Education>>();
            dependencyContainer.RegisterTransient<IServiceEducation, ServiceEducation>();
            dependencyContainer.RegisterTransient<IRepositoryEducation, RepositoryEducation>();
            dependencyContainer.RegisterTransient<IBusinessEducation, BusinessEducation>();

            dependencyContainer.RegisterTransient<IServiceBase<EmployeeType>, ServiceBase<EmployeeType>>();
            dependencyContainer.RegisterTransient<IRepositoryBase<EmployeeType>, RepositoryBase<EmployeeType>>();
            dependencyContainer.RegisterTransient<IBusinessBase<EmployeeType>, BusinessBase<EmployeeType>>();
            dependencyContainer.RegisterTransient<IServiceEmployeeType, ServiceEmployeeType>();
            dependencyContainer.RegisterTransient<IRepositoryEmployeeType, RepositoryEmployeeType>();
            dependencyContainer.RegisterTransient<IBusinessEmployeeType, BusinessEmployeeType>();

            dependencyContainer.RegisterTransient<IServiceBase<Branch>, ServiceBase<Branch>>();
            dependencyContainer.RegisterTransient<IRepositoryBase<Branch>, RepositoryBase<Branch>>();
            dependencyContainer.RegisterTransient<IBusinessBase<Branch>, BusinessBase<Branch>>();
            dependencyContainer.RegisterTransient<IServiceBranch, ServiceBranch>();
            dependencyContainer.RegisterTransient<IRepositoryBranch, RepositoryBranch>();
            dependencyContainer.RegisterTransient<IBusinessBranch, BusinessBranch>();

            dependencyContainer.RegisterTransient<IServiceBase<TraineeStatus>, ServiceBase<TraineeStatus>>();
            dependencyContainer.RegisterTransient<IRepositoryBase<TraineeStatus>, RepositoryBase<TraineeStatus>>();
            dependencyContainer.RegisterTransient<IBusinessBase<TraineeStatus>, BusinessBase<TraineeStatus>>();
            dependencyContainer.RegisterTransient<IServiceTraineeStatus, ServiceTraineeStatus>();
            dependencyContainer.RegisterTransient<IRepositoryTraineeStatus, RepositoryTraineeStatus>();
            dependencyContainer.RegisterTransient<IBusinessTraineeStatus, BusinessTraineeStatus>();

            dependencyContainer.RegisterTransient<IServiceBase<TraineeEmploymentStatus>, ServiceBase<TraineeEmploymentStatus>>();
            dependencyContainer.RegisterTransient<IRepositoryBase<TraineeEmploymentStatus>, RepositoryBase<TraineeEmploymentStatus>>();
            dependencyContainer.RegisterTransient<IBusinessBase<TraineeEmploymentStatus>, BusinessBase<TraineeEmploymentStatus>>();
            dependencyContainer.RegisterTransient<IServiceTraineeEmploymentStatus, ServiceTraineeEmploymentStatus>();
            dependencyContainer.RegisterTransient<IRepositoryTraineeEmploymentStatus, RepositoryTraineeEmploymentStatus>();
            dependencyContainer.RegisterTransient<IBusinessTraineeEmploymentStatus, BusinessTraineeEmploymentStatus>();

            dependencyContainer.RegisterTransient<IServiceBase<Employee>, ServiceBase<Employee>>();
            dependencyContainer.RegisterTransient<IRepositoryBase<Employee>, RepositoryBase<Employee>>();
            dependencyContainer.RegisterTransient<IBusinessBase<Employee>, BusinessBase<Employee>>();
            dependencyContainer.RegisterTransient<IServiceEmployee, ServiceEmployee>();
            dependencyContainer.RegisterTransient<IRepositoryEmployee, RepositoryEmployee>();
            dependencyContainer.RegisterTransient<IBusinessEmployee, BusinessTeacher>();

            dependencyContainer.RegisterTransient<IServiceBase<EmployeeHistory>, ServiceBase<EmployeeHistory>>();
            dependencyContainer.RegisterTransient<IRepositoryBase<EmployeeHistory>, RepositoryBase<EmployeeHistory>>();
            dependencyContainer.RegisterTransient<IBusinessBase<EmployeeHistory>, BusinessBase<EmployeeHistory>>();
            dependencyContainer.RegisterTransient<IServiceEmployeeHistory, ServiceEmployeeHistory>();
            dependencyContainer.RegisterTransient<IRepositoryEmployeeHistory, RepositoryEmployeeHistory>();
            dependencyContainer.RegisterTransient<IBusinessEmployeeHistory, BusinessEmployeeHistory>();

            dependencyContainer.RegisterTransient<IServiceBase<ControlEnt>, ServiceBase<ControlEnt>>();
            dependencyContainer.RegisterTransient<IRepositoryBase<ControlEnt>, RepositoryBase<ControlEnt>>();
            dependencyContainer.RegisterTransient<IBusinessBase<ControlEnt>, BusinessBase<ControlEnt>>();
            dependencyContainer.RegisterTransient<IServiceControl, ServiceControl>();
            dependencyContainer.RegisterTransient<IRepositoryControl, RepositoryControl>();
            dependencyContainer.RegisterTransient<IBusinessControl, BusinessControl>();

            dependencyContainer.RegisterTransient<IServiceBase<DataTypeEnt>, ServiceBase<DataTypeEnt>>();
            dependencyContainer.RegisterTransient<IRepositoryBase<DataTypeEnt>, RepositoryBase<DataTypeEnt>>();
            dependencyContainer.RegisterTransient<IBusinessBase<DataTypeEnt>, BusinessBase<DataTypeEnt>>();
            dependencyContainer.RegisterTransient<IServiceDataType, ServiceDataType>();
            dependencyContainer.RegisterTransient<IRepositoryDataType, RepositoryDataType>();
            dependencyContainer.RegisterTransient<IBusinessDataType, BusinessDataType>();

            dependencyContainer.RegisterTransient<IServiceBase<TraineeEmploymentStatusField>, ServiceBase<TraineeEmploymentStatusField>>();
            dependencyContainer.RegisterTransient<IRepositoryBase<TraineeEmploymentStatusField>, RepositoryBase<TraineeEmploymentStatusField>>();
            dependencyContainer.RegisterTransient<IBusinessBase<TraineeEmploymentStatusField>, BusinessBase<TraineeEmploymentStatusField>>();
            dependencyContainer.RegisterTransient<IServiceTraineeEmploymentStatusField, ServiceTraineeEmploymentStatusField>();
            dependencyContainer.RegisterTransient<IRepositoryTraineeEmploymentStatusField, RepositoryTraineeEmploymentStatusField>();
            dependencyContainer.RegisterTransient<IBusinessTraineeEmploymentStatusField, BusinessTraineeEmploymentStatusField>();

            dependencyContainer.RegisterTransient<IServiceBase<TraineeEmploymentStatusReason>,
                ServiceBase<TraineeEmploymentStatusReason>>();
            dependencyContainer.RegisterTransient<IRepositoryBase<TraineeEmploymentStatusReason>, RepositoryBase<TraineeEmploymentStatusReason>>();
            dependencyContainer.RegisterTransient<IBusinessBase<TraineeEmploymentStatusReason>, BusinessBase<TraineeEmploymentStatusReason>>();
            dependencyContainer.RegisterTransient<IServiceTraineeEmploymentStatusReason, ServiceTraineeEmploymentStatusReason>();
            dependencyContainer.RegisterTransient<IRepositoryTraineeEmploymentStatusReason, RepositoryTraineeEmploymentStatusReason>();
            dependencyContainer.RegisterTransient<IBusinessTraineeEmploymentStatusReason, BusinessTraineeEmploymentStatusReason>();

            dependencyContainer.RegisterTransient<IServiceBase<TraineeEmploymentStatusReasonDetail>, ServiceBase<TraineeEmploymentStatusReasonDetail>>();
            dependencyContainer.RegisterTransient<IRepositoryBase<TraineeEmploymentStatusReasonDetail>, RepositoryBase<TraineeEmploymentStatusReasonDetail>>();
            dependencyContainer.RegisterTransient<IBusinessBase<TraineeEmploymentStatusReasonDetail>, BusinessBase<TraineeEmploymentStatusReasonDetail>>();
            dependencyContainer.RegisterTransient<IServiceTraineeEmploymentStatusReasonDetail, ServiceTraineeEmploymentStatusReasonDetail>();
            dependencyContainer.RegisterTransient<IRepositoryTraineeEmploymentStatusReasonDetail, RepositoryTraineeEmploymentStatusReasonDetail>();
            dependencyContainer.RegisterTransient<IBusinessTraineeEmploymentStatusReasonDetail, BusinessTraineeEmploymentStatusReasonDetail>();
        }
Example #7
0
        /// <summary>
        /// Bootstraps dependencies
        /// </summary>
        /// <param name="dependencyContainer"></param>
        public virtual void Bootstrap(IDependencyContainer dependencyContainer)
        {
            dependencyContainer.RegisterTransient <IUnitOfWork, EFUnitOfWork>();
            dependencyContainer.RegisterTransient <IRepository, EFRepository>();
            dependencyContainer.RegisterTransient <DbContext, ProjectTemplateContext>();



            dependencyContainer.RegisterTransient <IServiceBase <Customers>, ServiceBase <Customers> >();
            dependencyContainer.RegisterTransient <IRepositoryBase <Customers>, RepositoryBase <Customers> >();
            dependencyContainer.RegisterTransient <IBusinessBase <Customers>, BusinessBase <Customers> >();
            dependencyContainer.RegisterTransient <IServiceCustomers, ServiceCustomers>();
            dependencyContainer.RegisterTransient <IRepositoryCustomers, RepositoryCustomers>();
            dependencyContainer.RegisterTransient <IBusinessCustomers, BusinessCustomers>();



            dependencyContainer.RegisterTransient <IServiceBase <Departments>, ServiceBase <Departments> >();
            dependencyContainer.RegisterTransient <IRepositoryBase <Departments>, RepositoryBase <Departments> >();
            dependencyContainer.RegisterTransient <IBusinessBase <Departments>, BusinessBase <Departments> >();
            dependencyContainer.RegisterTransient <IServiceDepartments, ServiceDepartments>();
            dependencyContainer.RegisterTransient <IRepositoryDepartments, RepositoryDepartments>();
            dependencyContainer.RegisterTransient <IBusinessDepartments, BusinessDepartments>();


            dependencyContainer.RegisterTransient <IServiceBase <Discounts>, ServiceBase <Discounts> >();
            dependencyContainer.RegisterTransient <IRepositoryBase <Discounts>, RepositoryBase <Discounts> >();
            dependencyContainer.RegisterTransient <IBusinessBase <Discounts>, BusinessBase <Discounts> >();
            dependencyContainer.RegisterTransient <IServiceDiscounts, ServiceDiscounts>();
            dependencyContainer.RegisterTransient <IRepositoryDiscounts, RepositoryDiscounts>();
            dependencyContainer.RegisterTransient <IBusinessDiscounts, BusinessDiscounts>();


            dependencyContainer.RegisterTransient <IServiceBase <HotelFeatures>, ServiceBase <HotelFeatures> >();
            dependencyContainer.RegisterTransient <IRepositoryBase <HotelFeatures>, RepositoryBase <HotelFeatures> >();
            dependencyContainer.RegisterTransient <IBusinessBase <HotelFeatures>, BusinessBase <HotelFeatures> >();
            dependencyContainer.RegisterTransient <IServiceHotelFeatures, ServiceHotelFeatures>();
            dependencyContainer.RegisterTransient <IRepositoryHotelFeatures, RepositoryHotelFeatures>();
            dependencyContainer.RegisterTransient <IBusinessHotelFeatures, BusinessHotelFeatures>();

            dependencyContainer.RegisterTransient <IServiceBase <Nationalities>, ServiceBase <Nationalities> >();
            dependencyContainer.RegisterTransient <IRepositoryBase <Nationalities>, RepositoryBase <Nationalities> >();
            dependencyContainer.RegisterTransient <IBusinessBase <Nationalities>, BusinessBase <Nationalities> >();
            dependencyContainer.RegisterTransient <IServiceNationalities, ServiceNationalities>();
            dependencyContainer.RegisterTransient <IRepositoryNationalities, RepositoryNationalities>();
            dependencyContainer.RegisterTransient <IBusinessNationalities, BusinessNationalities>();


            dependencyContainer.RegisterTransient <IServiceBase <Packets>, ServiceBase <Packets> >();
            dependencyContainer.RegisterTransient <IRepositoryBase <Packets>, RepositoryBase <Packets> >();
            dependencyContainer.RegisterTransient <IBusinessBase <Packets>, BusinessBase <Packets> >();
            dependencyContainer.RegisterTransient <IServicePackets, ServicePackets>();
            dependencyContainer.RegisterTransient <IRepositoryPackets, RepositoryPackets>();
            dependencyContainer.RegisterTransient <IBusinessPackets, BusinessPackets>();

            dependencyContainer.RegisterTransient <IServiceBase <PacketsExtraProductCategories>, ServiceBase <PacketsExtraProductCategories> >();
            dependencyContainer.RegisterTransient <IRepositoryBase <PacketsExtraProductCategories>, RepositoryBase <PacketsExtraProductCategories> >();
            dependencyContainer.RegisterTransient <IBusinessBase <PacketsExtraProductCategories>, BusinessBase <PacketsExtraProductCategories> >();
            dependencyContainer.RegisterTransient <IServicePacketsExtraProductCategories, ServicePacketsExtraProductCategories>();
            dependencyContainer.RegisterTransient <IRepositoryPacketsExtraProductCategories, RepositoryPacketsExtraProductCategories>();
            dependencyContainer.RegisterTransient <IBusinessPacketsExtraProductCategories, BusinessPacketsExtraProductCategories>();



            dependencyContainer.RegisterTransient <IServiceBase <RoomFeatures>, ServiceBase <RoomFeatures> >();
            dependencyContainer.RegisterTransient <IRepositoryBase <RoomFeatures>, RepositoryBase <RoomFeatures> >();
            dependencyContainer.RegisterTransient <IBusinessBase <RoomFeatures>, BusinessBase <RoomFeatures> >();
            dependencyContainer.RegisterTransient <IServiceRoomFeatures, ServiceRoomFeatures>();
            dependencyContainer.RegisterTransient <IRepositoryRoomFeatures, RepositoryRoomFeatures>();
            dependencyContainer.RegisterTransient <IBusinessRoomFeatures, BusinessRoomFeatures>();


            dependencyContainer.RegisterTransient <IServiceBase <RoomFeaturesRoomTypes>, ServiceBase <RoomFeaturesRoomTypes> >();
            dependencyContainer.RegisterTransient <IRepositoryBase <RoomFeaturesRoomTypes>, RepositoryBase <RoomFeaturesRoomTypes> >();
            dependencyContainer.RegisterTransient <IBusinessBase <RoomFeaturesRoomTypes>, BusinessBase <RoomFeaturesRoomTypes> >();
            dependencyContainer.RegisterTransient <IServiceRoomFeaturesRoomTypes, ServiceRoomFeaturesRoomTypes>();
            dependencyContainer.RegisterTransient <IRepositoryRoomFeaturesRoomTypes, RepositoryRoomFeaturesRoomTypes>();
            dependencyContainer.RegisterTransient <IBusinessRoomFeaturesRoomTypes, BusinessRoomFeaturesRoomTypes>();



            dependencyContainer.RegisterTransient <IServiceBase <Rooms>, ServiceBase <Rooms> >();
            dependencyContainer.RegisterTransient <IRepositoryBase <Rooms>, RepositoryBase <Rooms> >();
            dependencyContainer.RegisterTransient <IBusinessBase <Rooms>, BusinessBase <Rooms> >();
            dependencyContainer.RegisterTransient <IServiceRooms, ServiceRooms>();
            dependencyContainer.RegisterTransient <IRepositoryRooms, RepositoryRooms>();
            dependencyContainer.RegisterTransient <IBusinessRooms, BusinessRooms>();



            dependencyContainer.RegisterTransient <IServiceBase <StayingInRoom>, ServiceBase <StayingInRoom> >();
            dependencyContainer.RegisterTransient <IRepositoryBase <StayingInRoom>, RepositoryBase <StayingInRoom> >();
            dependencyContainer.RegisterTransient <IBusinessBase <StayingInRoom>, BusinessBase <StayingInRoom> >();
            dependencyContainer.RegisterTransient <IServiceStayingInRoom, ServiceStayingInRoom>();
            dependencyContainer.RegisterTransient <IRepositoryStayingInRoom, RepositoryStayingInRoom>();
            dependencyContainer.RegisterTransient <IBusinessStayingInRoom, BusinessStayingInRoom>();


            dependencyContainer.RegisterTransient <IServiceBase <Sales>, ServiceBase <Sales> >();
            dependencyContainer.RegisterTransient <IRepositoryBase <Sales>, RepositoryBase <Sales> >();
            dependencyContainer.RegisterTransient <IBusinessBase <Sales>, BusinessBase <Sales> >();
            dependencyContainer.RegisterTransient <IServiceSales, ServiceSales>();
            dependencyContainer.RegisterTransient <IRepositorySales, RepositorySales>();
            dependencyContainer.RegisterTransient <IBusinessSales, BusinessSales>();


            dependencyContainer.RegisterTransient <IServiceBase <RoomSales>, ServiceBase <RoomSales> >();
            dependencyContainer.RegisterTransient <IRepositoryBase <RoomSales>, RepositoryBase <RoomSales> >();
            dependencyContainer.RegisterTransient <IBusinessBase <RoomSales>, BusinessBase <RoomSales> >();
            dependencyContainer.RegisterTransient <IServiceRoomSales, ServiceRoomSales>();
            dependencyContainer.RegisterTransient <IRepositoryRoomSales, RepositoryRoomSales>();
            dependencyContainer.RegisterTransient <IBusinessRoomSales, BusinessRoomSales>();

            dependencyContainer.RegisterTransient <IServiceBase <PaymentMethods>, ServiceBase <PaymentMethods> >();
            dependencyContainer.RegisterTransient <IRepositoryBase <PaymentMethods>, RepositoryBase <PaymentMethods> >();
            dependencyContainer.RegisterTransient <IBusinessBase <PaymentMethods>, BusinessBase <PaymentMethods> >();
            dependencyContainer.RegisterTransient <IServicePaymentMethods, ServicePaymentMethods>();
            dependencyContainer.RegisterTransient <IRepositoryPaymentMethods, RepositoryPaymentMethods>();
            dependencyContainer.RegisterTransient <IBusinessPaymentMethods, BusinessPaymentMethods>();

            dependencyContainer.RegisterTransient <IServiceBase <SaleExtras>, ServiceBase <SaleExtras> >();
            dependencyContainer.RegisterTransient <IRepositoryBase <SaleExtras>, RepositoryBase <SaleExtras> >();
            dependencyContainer.RegisterTransient <IBusinessBase <SaleExtras>, BusinessBase <SaleExtras> >();
            dependencyContainer.RegisterTransient <IServiceSaleExtras, ServiceSaleExtras>();
            dependencyContainer.RegisterTransient <IRepositorySaleExtras, RepositorySaleExtras>();
            dependencyContainer.RegisterTransient <IBusinessSaleExtras, BusinessSaleExtras>();


            dependencyContainer.RegisterTransient <IServiceBase <ExtraProducts>, ServiceBase <ExtraProducts> >();
            dependencyContainer.RegisterTransient <IRepositoryBase <ExtraProducts>, RepositoryBase <ExtraProducts> >();
            dependencyContainer.RegisterTransient <IBusinessBase <ExtraProducts>, BusinessBase <ExtraProducts> >();
            dependencyContainer.RegisterTransient <IServiceExtraProducts, ServiceExtraProducts>();
            dependencyContainer.RegisterTransient <IRepositoryExtraProducts, RepositoryExtraProducts>();
            dependencyContainer.RegisterTransient <IBusinessExtraProducts, BusinessExtraProducts>();

            dependencyContainer.RegisterTransient <IServiceBase <ExtraProductCategories>, ServiceBase <ExtraProductCategories> >();
            dependencyContainer.RegisterTransient <IRepositoryBase <ExtraProductCategories>, RepositoryBase <ExtraProductCategories> >();
            dependencyContainer.RegisterTransient <IBusinessBase <ExtraProductCategories>, BusinessBase <ExtraProductCategories> >();
            dependencyContainer.RegisterTransient <IServiceExtraProductCategories, ServiceExtraProductCategories>();
            dependencyContainer.RegisterTransient <IRepositoryExtraProductCategories, RepositoryExtraProductCategories>();
            dependencyContainer.RegisterTransient <IBusinessExtraProductCategories, BusinessExtraProductCategories>();

            dependencyContainer.RegisterTransient <IServiceBase <RoomTypes>, ServiceBase <RoomTypes> >();
            dependencyContainer.RegisterTransient <IRepositoryBase <RoomTypes>, RepositoryBase <RoomTypes> >();
            dependencyContainer.RegisterTransient <IBusinessBase <RoomTypes>, BusinessBase <RoomTypes> >();
            dependencyContainer.RegisterTransient <IServiceRoomTypes, ServiceRoomTypes>();
            dependencyContainer.RegisterTransient <IRepositoryRoomTypes, RepositoryRoomTypes>();
            dependencyContainer.RegisterTransient <IBusinessRoomTypes, BusinessRoomTypes>();

            dependencyContainer.RegisterTransient <IServiceBase <Shifts>, ServiceBase <Shifts> >();
            dependencyContainer.RegisterTransient <IRepositoryBase <Shifts>, RepositoryBase <Shifts> >();
            dependencyContainer.RegisterTransient <IBusinessBase <Shifts>, BusinessBase <Shifts> >();
            dependencyContainer.RegisterTransient <IServiceShifts, ServiceShifts>();
            dependencyContainer.RegisterTransient <IRepositoryShifts, RepositoryShifts>();
            dependencyContainer.RegisterTransient <IBusinessShifts, BusinessShifts>();

            dependencyContainer.RegisterTransient <IServiceBase <RoomStatuses>, ServiceBase <RoomStatuses> >();
            dependencyContainer.RegisterTransient <IRepositoryBase <RoomStatuses>, RepositoryBase <RoomStatuses> >();
            dependencyContainer.RegisterTransient <IBusinessBase <RoomStatuses>, BusinessBase <RoomStatuses> >();
            dependencyContainer.RegisterTransient <IServiceRoomStatuses, ServiceRoomStatuses>();
            dependencyContainer.RegisterTransient <IRepositoryRoomStatuses, RepositoryRoomStatuses>();
            dependencyContainer.RegisterTransient <IBusinessRoomStatuses, BusinessRoomStatuses>();

            dependencyContainer.RegisterTransient <IServiceBase <BlockFloors>, ServiceBase <BlockFloors> >();
            dependencyContainer.RegisterTransient <IRepositoryBase <BlockFloors>, RepositoryBase <BlockFloors> >();
            dependencyContainer.RegisterTransient <IBusinessBase <BlockFloors>, BusinessBase <BlockFloors> >();
            dependencyContainer.RegisterTransient <IServiceBlockFloors, ServiceBlockFloors>();
            dependencyContainer.RegisterTransient <IRepositoryBlockFloors, RepositoryBlockFloors>();
            dependencyContainer.RegisterTransient <IBusinessBlockFloors, BusinessBlockFloors>();

            dependencyContainer.RegisterTransient <IServiceBase <Statuses>, ServiceBase <Statuses> >();
            dependencyContainer.RegisterTransient <IRepositoryBase <Statuses>, RepositoryBase <Statuses> >();
            dependencyContainer.RegisterTransient <IBusinessBase <Statuses>, BusinessBase <Statuses> >();
            dependencyContainer.RegisterTransient <IServiceStatuses, ServiceStatuses>();
            dependencyContainer.RegisterTransient <IRepositoryStatuses, RepositoryStatuses>();
            dependencyContainer.RegisterTransient <IBusinessStatuses, BusinessStatuses>();


            dependencyContainer.RegisterTransient <IServiceBase <Blocks>, ServiceBase <Blocks> >();
            dependencyContainer.RegisterTransient <IRepositoryBase <Blocks>, RepositoryBase <Blocks> >();
            dependencyContainer.RegisterTransient <IBusinessBase <Blocks>, BusinessBase <Blocks> >();
            dependencyContainer.RegisterTransient <IServiceBlocks, ServiceBlocks>();
            dependencyContainer.RegisterTransient <IRepositoryBlocks, RepositoryBlocks>();
            dependencyContainer.RegisterTransient <IBusinessBlocks, BusinessBlocks>();


            dependencyContainer.RegisterTransient <IServiceBase <Employees>, ServiceBase <Employees> >();
            dependencyContainer.RegisterTransient <IRepositoryBase <Employees>, RepositoryBase <Employees> >();
            dependencyContainer.RegisterTransient <IBusinessBase <Employees>, BusinessBase <Employees> >();
            dependencyContainer.RegisterTransient <IServiceEmployees, ServiceEmployees>();
            dependencyContainer.RegisterTransient <IRepositoryEmployees, RepositoryEmployees>();
            dependencyContainer.RegisterTransient <IBusinessEmployees, BusinessEmployees>();


            dependencyContainer.RegisterTransient <IServiceBase <EmployeeShifts>, ServiceBase <EmployeeShifts> >();
            dependencyContainer.RegisterTransient <IRepositoryBase <EmployeeShifts>, RepositoryBase <EmployeeShifts> >();
            dependencyContainer.RegisterTransient <IBusinessBase <EmployeeShifts>, BusinessBase <EmployeeShifts> >();
            dependencyContainer.RegisterTransient <IServiceEmployeeShifts, ServiceEmployeeShifts>();
            dependencyContainer.RegisterTransient <IRepositoryEmployeeShifts, RepositoryEmployeeShifts>();
            dependencyContainer.RegisterTransient <IBusinessEmployeeShifts, BusinessEmployeeShifts>();



            dependencyContainer.RegisterTransient <IServiceBase <Floors>, ServiceBase <Floors> >();
            dependencyContainer.RegisterTransient <IRepositoryBase <Floors>, RepositoryBase <Floors> >();
            dependencyContainer.RegisterTransient <IBusinessBase <Floors>, BusinessBase <Floors> >();
            dependencyContainer.RegisterTransient <IServiceFloors, ServiceFloors>();
            dependencyContainer.RegisterTransient <IRepositoryFloors, RepositoryFloors>();
            dependencyContainer.RegisterTransient <IBusinessFloors, BusinessFloors>();



            dependencyContainer.RegisterTransient <IServiceBase <GroupsOfEmployee>, ServiceBase <GroupsOfEmployee> >();
            dependencyContainer.RegisterTransient <IRepositoryBase <GroupsOfEmployee>, RepositoryBase <GroupsOfEmployee> >();
            dependencyContainer.RegisterTransient <IBusinessBase <GroupsOfEmployee>, BusinessBase <GroupsOfEmployee> >();
            dependencyContainer.RegisterTransient <IServiceGroupsOfEmployee, ServiceGroupsOfEmployee>();
            dependencyContainer.RegisterTransient <IRepositoryGroupsOfEmployee, RepositoryGroupsOfEmployee>();
            dependencyContainer.RegisterTransient <IBusinessGroupsOfEmployee, BusinessGroupsOfEmployee>();


            dependencyContainer.RegisterTransient <IServiceBase <Permits>, ServiceBase <Permits> >();
            dependencyContainer.RegisterTransient <IRepositoryBase <Permits>, RepositoryBase <Permits> >();
            dependencyContainer.RegisterTransient <IBusinessBase <Permits>, BusinessBase <Permits> >();
            dependencyContainer.RegisterTransient <IServicePermits, ServicePermits>();
            dependencyContainer.RegisterTransient <IRepositoryPermits, RepositoryPermits>();
            dependencyContainer.RegisterTransient <IBusinessPermits, BusinessPermits>();


            dependencyContainer.RegisterTransient <IServiceBase <PermitTypes>, ServiceBase <PermitTypes> >();
            dependencyContainer.RegisterTransient <IRepositoryBase <PermitTypes>, RepositoryBase <PermitTypes> >();
            dependencyContainer.RegisterTransient <IBusinessBase <PermitTypes>, BusinessBase <PermitTypes> >();
            dependencyContainer.RegisterTransient <IServicePermitTypes, ServicePermitTypes>();
            dependencyContainer.RegisterTransient <IRepositoryPermitTypes, RepositoryPermitTypes>();
            dependencyContainer.RegisterTransient <IBusinessPermitTypes, BusinessPermitTypes>();



            dependencyContainer.RegisterTransient <IServiceBase <ReserveCancelLog>, ServiceBase <ReserveCancelLog> >();
            dependencyContainer.RegisterTransient <IRepositoryBase <ReserveCancelLog>, RepositoryBase <ReserveCancelLog> >();
            dependencyContainer.RegisterTransient <IBusinessBase <ReserveCancelLog>, BusinessBase <ReserveCancelLog> >();
            dependencyContainer.RegisterTransient <IServiceReserveCancelLog, ServiceReserveCancelLog>();
            dependencyContainer.RegisterTransient <IRepositoryReserveCancelLog, RepositoryReserveCancelLog>();
            dependencyContainer.RegisterTransient <IBusinessReserveCancelLog, BusinessReserveCancelLog>();



            dependencyContainer.RegisterTransient <IServiceBase <Users>, ServiceBase <Users> >();
            dependencyContainer.RegisterTransient <IRepositoryBase <Users>, RepositoryBase <Users> >();
            dependencyContainer.RegisterTransient <IBusinessBase <Users>, BusinessBase <Users> >();
            dependencyContainer.RegisterTransient <IServiceUsers, ServiceUsers>();
            dependencyContainer.RegisterTransient <IRepositoryUsers, RepositoryUsers>();
            dependencyContainer.RegisterTransient <IBusinessUsers, BusinessUsers>();

            dependencyContainer.RegisterTransient <IServiceBase <UserAuthorities>, ServiceBase <UserAuthorities> >();
            dependencyContainer.RegisterTransient <IRepositoryBase <UserAuthorities>, RepositoryBase <UserAuthorities> >();
            dependencyContainer.RegisterTransient <IBusinessBase <UserAuthorities>, BusinessBase <UserAuthorities> >();
            dependencyContainer.RegisterTransient <IServiceUserAuthoritys, ServiceUserAuthoritys>();
            dependencyContainer.RegisterTransient <IRepositoryUserAuthoritys, RepositoryUserAuthoritys>();
            dependencyContainer.RegisterTransient <IBusinessUserAuthoritys, BusinessUserAuthoritys>();

            dependencyContainer.RegisterTransient <IServiceBase <Authorities>, ServiceBase <Authorities> >();
            dependencyContainer.RegisterTransient <IRepositoryBase <Authorities>, RepositoryBase <Authorities> >();
            dependencyContainer.RegisterTransient <IBusinessBase <Authorities>, BusinessBase <Authorities> >();
            dependencyContainer.RegisterTransient <IServiceAuthoritys, ServiceAuthoritys>();
            dependencyContainer.RegisterTransient <IRepositoryAuthoritys, RepositoryAuthoritys>();
            dependencyContainer.RegisterTransient <IBusinessAuthoritys, BusinessAuthoritys>();
        }
Example #8
0
        /// <summary>
        /// Bootstraps dependencies
        /// </summary>
        /// <param name="dependencyContainer"></param>
        public virtual void Bootstrap(IDependencyContainer dependencyContainer)
        {
            dependencyContainer.RegisterTransient <IUnitOfWork, EFUnitOfWork>();
            dependencyContainer.RegisterTransient <IRepository, EFRepository>();
            dependencyContainer.RegisterTransient <DbContext, ProjectTemplateContext>();

            dependencyContainer.RegisterTransient <IServiceBase <Film>, ServiceBase <Film> >();
            dependencyContainer.RegisterTransient <IRepositoryBase <Film>, RepositoryBase <Film> >();
            dependencyContainer.RegisterTransient <IBusinessBase <Film>, BusinessBase <Film> >();
            dependencyContainer.RegisterTransient <IServiceFilm, ServiceFilm>();
            dependencyContainer.RegisterTransient <IRepositoryFilm, RepositoryFilm>();
            dependencyContainer.RegisterTransient <IBusinessFilm, BusinessFilm>();

            dependencyContainer.RegisterTransient <IServiceBase <Actor>, ServiceBase <Actor> >();
            dependencyContainer.RegisterTransient <IRepositoryBase <Actor>, RepositoryBase <Actor> >();
            dependencyContainer.RegisterTransient <IBusinessBase <Actor>, BusinessBase <Actor> >();
            dependencyContainer.RegisterTransient <IServiceActor, ServiceActor>();
            dependencyContainer.RegisterTransient <IRepositoryActor, RepositoryActor>();
            dependencyContainer.RegisterTransient <IBusinessActor, BusinessActor>();

            dependencyContainer.RegisterTransient <IServiceBase <Director>, ServiceBase <Director> >();
            dependencyContainer.RegisterTransient <IRepositoryBase <Director>, RepositoryBase <Director> >();
            dependencyContainer.RegisterTransient <IBusinessBase <Director>, BusinessBase <Director> >();
            dependencyContainer.RegisterTransient <IServiceDirector, ServiceDirector>();
            dependencyContainer.RegisterTransient <IRepositoryDirector, RepositoryDirector>();
            dependencyContainer.RegisterTransient <IBusinessDirector, BusinessDirector>();

            dependencyContainer.RegisterTransient <IServiceBase <FilmType>, ServiceBase <FilmType> >();
            dependencyContainer.RegisterTransient <IRepositoryBase <FilmType>, RepositoryBase <FilmType> >();
            dependencyContainer.RegisterTransient <IBusinessBase <FilmType>, BusinessBase <FilmType> >();
            dependencyContainer.RegisterTransient <IServiceFilmType, ServiceFilmType>();
            dependencyContainer.RegisterTransient <IRepositoryFilmType, RepositoryFilmType>();
            dependencyContainer.RegisterTransient <IBusinessFilmType, BusinessFilmType>();

            dependencyContainer.RegisterTransient <IServiceBase <Producer>, ServiceBase <Producer> >();
            dependencyContainer.RegisterTransient <IRepositoryBase <Producer>, RepositoryBase <Producer> >();
            dependencyContainer.RegisterTransient <IBusinessBase <Producer>, BusinessBase <Producer> >();
            dependencyContainer.RegisterTransient <IServiceProducer, ServiceProducer>();
            dependencyContainer.RegisterTransient <IRepositoryProducer, RepositoryProducer>();
            dependencyContainer.RegisterTransient <IBusinessProducer, BusinessProducer>();

            dependencyContainer.RegisterTransient <IServiceBase <User>, ServiceBase <User> >();
            dependencyContainer.RegisterTransient <IRepositoryBase <User>, RepositoryBase <User> >();
            dependencyContainer.RegisterTransient <IBusinessBase <User>, BusinessBase <User> >();
            dependencyContainer.RegisterTransient <IServiceUser, ServiceUser>();
            dependencyContainer.RegisterTransient <IRepositoryUser, RepositoryUser>();
            dependencyContainer.RegisterTransient <IBusinessUser, BusinessUser>();

            dependencyContainer.RegisterTransient <IServiceBase <Writer>, ServiceBase <Writer> >();
            dependencyContainer.RegisterTransient <IRepositoryBase <Writer>, RepositoryBase <Writer> >();
            dependencyContainer.RegisterTransient <IBusinessBase <Writer>, BusinessBase <Writer> >();
            dependencyContainer.RegisterTransient <IServiceWriter, ServiceWriter>();
            dependencyContainer.RegisterTransient <IRepositoryWriter, RepositoryWriter>();
            dependencyContainer.RegisterTransient <IBusinessWriter, BusinessWriter>();
        }
        /// <summary>
        /// Bootstraps dependencies
        /// </summary>
        /// <param name="dependencyContainer"></param>
        public virtual void Bootstrap(IDependencyContainer dependencyContainer)
        {
            dependencyContainer.RegisterTransient<IUnitOfWork, EFUnitOfWork>();
            dependencyContainer.RegisterTransient<IRepository, EFRepository>();
            dependencyContainer.RegisterTransient<DbContext, ProjectTemplateContext>();

            dependencyContainer.RegisterTransient<IServiceBase<Film>, ServiceBase<Film>>();
            dependencyContainer.RegisterTransient<IRepositoryBase<Film>, RepositoryBase<Film>>();
            dependencyContainer.RegisterTransient<IBusinessBase<Film>, BusinessBase<Film>>();
            dependencyContainer.RegisterTransient<IServiceFilm, ServiceFilm>();
            dependencyContainer.RegisterTransient<IRepositoryFilm, RepositoryFilm>();
            dependencyContainer.RegisterTransient<IBusinessFilm, BusinessFilm>();

            dependencyContainer.RegisterTransient<IServiceBase<Actor>, ServiceBase<Actor>>();
            dependencyContainer.RegisterTransient<IRepositoryBase<Actor>, RepositoryBase<Actor>>();
            dependencyContainer.RegisterTransient<IBusinessBase<Actor>, BusinessBase<Actor>>();
            dependencyContainer.RegisterTransient<IServiceActor, ServiceActor>();
            dependencyContainer.RegisterTransient<IRepositoryActor, RepositoryActor>();
            dependencyContainer.RegisterTransient<IBusinessActor, BusinessActor>();

            dependencyContainer.RegisterTransient<IServiceBase<Director>, ServiceBase<Director>>();
            dependencyContainer.RegisterTransient<IRepositoryBase<Director>, RepositoryBase<Director>>();
            dependencyContainer.RegisterTransient<IBusinessBase<Director>, BusinessBase<Director>>();
            dependencyContainer.RegisterTransient<IServiceDirector, ServiceDirector>();
            dependencyContainer.RegisterTransient<IRepositoryDirector, RepositoryDirector>();
            dependencyContainer.RegisterTransient<IBusinessDirector, BusinessDirector>();

            dependencyContainer.RegisterTransient<IServiceBase<FilmType>, ServiceBase<FilmType>>();
            dependencyContainer.RegisterTransient<IRepositoryBase<FilmType>, RepositoryBase<FilmType>>();
            dependencyContainer.RegisterTransient<IBusinessBase<FilmType>, BusinessBase<FilmType>>();
            dependencyContainer.RegisterTransient<IServiceFilmType, ServiceFilmType>();
            dependencyContainer.RegisterTransient<IRepositoryFilmType, RepositoryFilmType>();
            dependencyContainer.RegisterTransient<IBusinessFilmType, BusinessFilmType>();

            dependencyContainer.RegisterTransient<IServiceBase<Producer>, ServiceBase<Producer>>();
            dependencyContainer.RegisterTransient<IRepositoryBase<Producer>, RepositoryBase<Producer>>();
            dependencyContainer.RegisterTransient<IBusinessBase<Producer>, BusinessBase<Producer>>();
            dependencyContainer.RegisterTransient<IServiceProducer, ServiceProducer>();
            dependencyContainer.RegisterTransient<IRepositoryProducer, RepositoryProducer>();
            dependencyContainer.RegisterTransient<IBusinessProducer, BusinessProducer>();

            dependencyContainer.RegisterTransient<IServiceBase<User>, ServiceBase<User>>();
            dependencyContainer.RegisterTransient<IRepositoryBase<User>, RepositoryBase<User>>();
            dependencyContainer.RegisterTransient<IBusinessBase<User>, BusinessBase<User>>();
            dependencyContainer.RegisterTransient<IServiceUser, ServiceUser>();
            dependencyContainer.RegisterTransient<IRepositoryUser, RepositoryUser>();
            dependencyContainer.RegisterTransient<IBusinessUser, BusinessUser>();

            dependencyContainer.RegisterTransient<IServiceBase<Writer>, ServiceBase<Writer>>();
            dependencyContainer.RegisterTransient<IRepositoryBase<Writer>, RepositoryBase<Writer>>();
            dependencyContainer.RegisterTransient<IBusinessBase<Writer>, BusinessBase<Writer>>();
            dependencyContainer.RegisterTransient<IServiceWriter, ServiceWriter>();
            dependencyContainer.RegisterTransient<IRepositoryWriter, RepositoryWriter>();
            dependencyContainer.RegisterTransient<IBusinessWriter, BusinessWriter>();
        }
Example #10
0
 /// <summary>
 /// Bootstraps dependencies
 /// </summary>
 /// <param name="dependencyContainer"></param>
 public virtual void Bootstrap(IDependencyContainer dependencyContainer)
 {
     dependencyContainer.RegisterTransient <ITaskService, TaskManager>();
     dependencyContainer.RegisterPerThread <ITaskDal, EfTaskDal>();
 }