public void SetUp(IRegisterComponent registerComponent)
        {
            registerComponent.RegisterTypeWithInjectedConstructor <IUnitOfWork, UnitOfWork>("NawafizApp");
            registerComponent.RegisterTypeWithTransientLifetimeManager <IUserStore <IdentityUser, Guid>, UserStore>();
            registerComponent.RegisterTypeWithTransientLifetimeManager <IRoleStore <IdentityRole, Guid>, RoleStore>();

            // Services
            registerComponent.RegisterType <ILanguageService, LanguageService>();
            registerComponent.RegisterType <IUserService, UserService>();
            registerComponent.RegisterType <IHotelBlockService, HotelBlockService>();
            registerComponent.RegisterType <IRoomService, RoomService>();
            registerComponent.RegisterType <IRoomRecServices, RoomRecServices>();
            registerComponent.RegisterType <IRoomTypeService, RoomTypeService>();
            registerComponent.RegisterType <IRoomStatusService, RoomStatusService>();
            registerComponent.RegisterType <IFixOrderEqupService, FixOrderEqupService>();
            registerComponent.RegisterType <IFixOrderServices, FixOrderServices>();
            registerComponent.RegisterType <IEquipmentService, EquipmentService>();
            registerComponent.RegisterType <ICleanOrderService, CleanOrderService>();
            registerComponent.RegisterType <IReportService, ReportService>();
            registerComponent.RegisterType <INotifictationService, NotifictationService>();
            // Validators
            registerComponent.RegisterType <IValidator <LanguageDto>, LanguageValidator>();
            ;
            registerComponent.RegisterType <IValidator <ChangePasswordDto>, ChangePasswordValidator>();
        }
Пример #2
0
        public void SetUp(IRegisterComponent registerComponent)
        {
            registerComponent.RegisterTypeWithTransientLifetimeManager <IUserStore <IdentityUser, Guid>, UserStore>();
            registerComponent.RegisterTypeWithTransientLifetimeManager <IRoleStore <IdentityRole, Guid>, RoleStore>();
            registerComponent.RegisterType <WebService.IUserWebService, UserWebService>();
            // Services


            // Validators

            registerComponent.RegisterType <IValidator <RegisterUserDto>, RegisterUserValidator>();

            //  registerComponent.RegisterType<IValidator<ChangePasswordDto>, ChangePasswordValidator>();
        }
Пример #3
0
        public void SetUp(IRegisterComponent registerComponent)
        {
            registerComponent.RegisterTypeWithInjectedConstructor <IUnitOfWork, UnitOfWork>("CoreApp");
            registerComponent.RegisterTypeWithTransientLifetimeManager <IUserStore <IdentityUser, Guid>, UserStore>();
            registerComponent.RegisterTypeWithTransientLifetimeManager <IRoleStore <IdentityRole, Guid>, RoleStore>();

            // Services
            registerComponent.RegisterType <ILanguageService, LanguageService>();
            registerComponent.RegisterType <IUserService, UserService>();


            // Validators
            registerComponent.RegisterType <IValidator <LanguageDto>, LanguageValidator>();
            registerComponent.RegisterType <IValidator <RegisterUserDto>, RegisterUserValidator>();
        }