コード例 #1
0
 public PatientController(
     IPatientService patientService,
     IUnitOfWorkAsync unitOfWork) : base(unitOfWork)
 {
     _patientService = patientService;
      _logger = LogManager.GetLogger(GetType().Name);
 }
コード例 #2
0
        public ListingController(
           IUnitOfWorkAsync unitOfWorkAsync,
           ISettingService settingService,
           ICategoryService categoryService,
           IListingService listingService,
           IPictureService pictureService,
           IListingPictureService ListingPictureservice,
           IOrderService orderService,
           ICustomFieldService customFieldService,
           ICustomFieldCategoryService customFieldCategoryService,
           ICustomFieldListingService customFieldListingService,
           ISettingDictionaryService settingDictionaryService,
           IListingStatService ListingStatservice,
           IEmailTemplateService emailTemplateService,
           DataCacheService dataCacheService,
           SqlDbService sqlDbService)
        {
            _settingService = settingService;
            _settingDictionaryService = settingDictionaryService;

            _categoryService = categoryService;
            _listingService = listingService;
            _pictureService = pictureService;
            _ListingPictureservice = ListingPictureservice;
            _orderService = orderService;
            _customFieldService = customFieldService;
            _customFieldCategoryService = customFieldCategoryService;
            _customFieldListingService = customFieldListingService;
            _ListingStatservice = ListingStatservice;
            _emailTemplateService = emailTemplateService;
            _dataCacheService = dataCacheService;
            _sqlDbService = sqlDbService;

            _unitOfWorkAsync = unitOfWorkAsync;
        }
コード例 #3
0
 public WorkProcessDetailsController(IStationService stationService,IWorkProcessService workProcessService,IWorkProcessDetailService workProcessDetailService, IUnitOfWorkAsync unitOfWork)
 {
     _workProcessDetailService = workProcessDetailService;
     _unitOfWork = unitOfWork;
     _workProcessService = workProcessService;
     _stationService = stationService;
 }
コード例 #4
0
 public RoleMenusController(IRoleMenuService roleMenuService, IUnitOfWorkAsync unitOfWork, IMenuItemService menuItemService, ApplicationRoleManager roleManager)
 {
     _roleMenuService = roleMenuService;
     _menuItemService = menuItemService;
     _roleManager = roleManager;
     _unitOfWork = unitOfWork;
 }
コード例 #5
0
 public WeekMenuController(IUnitOfWorkAsync unitOfWork)
 {
     _unitOfWork = unitOfWork;
     _db = _unitOfWork.GetContext();
     _weekmenuService = new MenuForWeekService(_unitOfWork.RepositoryAsync<MenuForWeek>());
     _mfdDishPriceService=new MfdDishPriceService(_unitOfWork.RepositoryAsync<MfdDishPriceRelations>());
 }
 public DepartmentController(
     IUnitOfWorkAsync unitOfWorkAsync,
     IDepartmentBLL departmentService)
 {
     _unitOfWorkAsync = unitOfWorkAsync;
     _departmentService = departmentService;
 }
コード例 #7
0
        public ManageController(
            IUnitOfWorkAsync unitOfWorkAsync,
            ISettingService settingService,
            ICategoryService categoryService,
            IItemService itemService,
            IPictureService pictureService,
            IItemPictureService itemPictureService,
            IOrderService orderService,
            ICustomFieldService customFieldService,
            ICustomFieldCategoryService customFieldCategoryService,
            ICustomFieldItemService customFieldItemService,
            ISettingDictionaryService settingDictionaryService,
            IItemStatService itemStatService,
            DataCacheService dataCacheService,
            SqlDbService sqlDbService)
        {
            _settingService = settingService;
            _settingDictionaryService = settingDictionaryService;

            _categoryService = categoryService;
            _itemService = itemService;
            _pictureService = pictureService;
            _itemPictureService = itemPictureService;
            _orderService = orderService;            
            
            _customFieldService = customFieldService;
            _customFieldCategoryService = customFieldCategoryService;
            _customFieldItemService = customFieldItemService;
            _itemStatService = itemStatService;

            _dataCacheService = dataCacheService;
            _sqlDbService = sqlDbService;

            _unitOfWorkAsync = unitOfWorkAsync;
        }
コード例 #8
0
ファイル: HomeController.cs プロジェクト: babak59/forbiz
 public HomeController(IQuickLinkService quickLinkService, IUnitOfWorkAsync unitOfWork, IArticleService articleService, IArticleCategoryService articleCategoryService)
 {
     this.quickLinkService = quickLinkService;
     this.articleService = articleService;
     this.unitOfWork = unitOfWork;
     this.articleCategoryService = articleCategoryService;
 }
コード例 #9
0
 public TestWeekMenuController()
 {
     _unitOfWork = new UnitOfWork(new ApplicationDbContext());
     _db = _unitOfWork.GetContext();
     _weekMenuService = new MenuForWeekService(_unitOfWork.RepositoryAsync<MenuForWeek>());
     _userManager = new ApplicationUserManager(new UserStore<User>(_unitOfWork.GetContext()));
 }
コード例 #10
0
ファイル: DataController.cs プロジェクト: psws/logqso.mvc
        /// <summary>
        /// Public constructor to initialize product service instance
        /// </summary>

        public DataController(
            IUnitOfWorkAsync unitOfWorkAsync,
            IControlService ControlService)
        {
            _unitOfWorkAsync = unitOfWorkAsync;
            _ControlService = ControlService;
        }
 public CustomerController(
     IUnitOfWorkAsync unitOfWorkAsync,
     ICustomerService customerService)
 {
     _unitOfWorkAsync = unitOfWorkAsync;
     _customerService = customerService;
 }
コード例 #12
0
 public PersonServiceController(
     IUnitOfWorkAsync unitOfWorkAsync,
     IPersonBukService personBukService)
 {
     _unitOfWorkAsync = unitOfWorkAsync;
     _personBukService = personBukService;
 }
 public ProjectRoleController(
     IUnitOfWorkAsync unitOfWorkAsync,
     IProjectRoleBLL projectRoleService)
 {
     _unitOfWorkAsync = unitOfWorkAsync;
     _projectRoleService = projectRoleService;
 }
コード例 #14
0
 public FileUploadController(IStationService stationservice,IProcessStepService setpservice,ISKUService sKUService, IBOMComponentService iBOMComponentService, IUnitOfWorkAsync unitOfWork)
 {
     _iBOMComponentService = iBOMComponentService;
     _sKUService  = sKUService;
     _unitOfWork = unitOfWork;
     _setpservice = setpservice;
     _stationservice = stationservice;
 }
コード例 #15
0
 public UserProfileService(IUnitOfWorkAsync unitOfWork, IUserProfileRepository repository,
     IUtilityService utilityService,IUserProfileRepository userProfileRepository)
 {
     _unitOfWork = unitOfWork;
     _repository = repository;
     _utilityService = utilityService;
     _userProfileRepository = userProfileRepository;
 }
コード例 #16
0
 public MigrationTest()
 {
     _unitOfWork = new UnitOfWork(new ApplicationDbContext());
     dataContext = _unitOfWork.GetContext();
     IRepositoryAsync<MenuForWeek> menuRepo = _unitOfWork.RepositoryAsync<MenuForWeek>();
     _menuForWeekService = new MenuForWeekService(menuRepo);
     _userManager = new ApplicationUserManager(new UserStore<User>(dataContext));
 }
コード例 #17
0
 public EmployeeOrderApiController(IUnitOfWorkAsync unitOfWorkAsync)
 {
     _unitOfWork = unitOfWorkAsync;
     _db = unitOfWorkAsync.GetContext();
     _weekMenuService = new MenuForWeekService(_unitOfWork.RepositoryAsync<MenuForWeek>());
     _orderMenuService = new OrderMenuService(_unitOfWork.RepositoryAsync<WeekOrderMenu>());
     _weekPaimentService = new WeekPaimentService(_unitOfWork.RepositoryAsync<WeekPaiment>());
 }
コード例 #18
0
 public GroupController(
     IUnitOfWorkAsync unitOfWork,
     IStoredProcedureService storedProcedureService,
     IGroupService groupService)
 {
     _unitOfWork = unitOfWork;
     _groupService = groupService;
     _storedProcedureService = storedProcedureService;
 }
コード例 #19
0
 public ProjectController(IProjectService projectService, IUnitOfWorkAsync unitOfWork,
     IAreaService areaService, IProjectTypeService projectTypeService, IPriceService priceService)
 {
     _projectService = projectService;
     _unitOfWork = unitOfWork;
     _AreaService = areaService;
     _ProjectTypeService = projectTypeService;
     _PriceService = priceService;
 }
コード例 #20
0
 public DisqusController(
     ISettingDictionaryService settingDictionaryService,
     IUnitOfWorkAsync unitOfWorkAsync,
     DataCacheService dataCacheService)
 {
     _settingDictionaryService = settingDictionaryService;
     _unitOfWorkAsync = unitOfWorkAsync;
     _dataCacheService = dataCacheService;
 }
コード例 #21
0
 public UserController(IUnitOfWorkAsync unitOfWorkAsync,
     IRepositoryAsync<Account> accountRepositoryAsync, 
     IRepositoryAsync<Employee> employeeRepositoryAsync,
     IRepositoryAsync<Role> roleRepositoryAsync)
 {
     _accountRepositoryAsync = accountRepositoryAsync;
     _employeeRepositoryAsync = employeeRepositoryAsync;
     _roleRepositoryAsync = roleRepositoryAsync;
     _unitOfWorkAsync = unitOfWorkAsync;
 }
コード例 #22
0
 public EmployeeController(
     IUnitOfWorkAsync unitOfWorkAsync,
     IEmployeeBLL employeeService,
     IDepartmentBLL departmentService,
     IDepartmentRoleBLL departmentRoleService)
 {
     _unitOfWorkAsync = unitOfWorkAsync;
     _employeeService = employeeService;
     _departmentService = departmentService;
     _departmentRoleService = departmentRoleService;
 }
コード例 #23
0
 public UserManagerModel(
     IEmployeeLoginBLL employeeLoginService,
     IEmployeeBLL employeeService,
     IUnitOfWorkAsync unitOfWorkAsync,
     IDepartmentRoleBLL departmentRoleService,
     IDepartmentBLL departmentService)
 {
     _unitOfWorkAsync = unitOfWorkAsync;
     _employeeLoginService = employeeLoginService;
     _employeeService = employeeService;
     _departmentRoleService = departmentRoleService;
 }
コード例 #24
0
ファイル: WebForm1.aspx.cs プロジェクト: saikiranmandhala/CMS
        protected void Page_Load(object sender, EventArgs e)
        {
            uow = new UnitOfWork(context);
            repoUsers = uow.Repository<Users>();
            IQueryable<Users> lst = from r in repoUsers.AsNoTracking()
                      where r.UserName == "sai"
                      select r;

            foreach (Users user in lst)
            {

            }
        }
 public EmployeeProjectController(
     IUnitOfWorkAsync unitOfWorkAsync,
     IProjectRoleBLL projectRoleService,
     IProjectBLL projectService,
     IEmployeeBLL employeeService,
     IEmployeeProjectsBLL employeeProjectsService)
 {
     _unitOfWorkAsync = unitOfWorkAsync;
     _projectService = projectService;
     _projectRoleService = projectRoleService;
 _employeeService = employeeService;
 _employeeProjectsService = employeeProjectsService;
 }
 public AuthenticationController(
     IDepartmentBLL departmentService,
     IDepartmentRoleBLL departmentRoleService,
     IEmployeeBLL employeeService,
     IUnitOfWorkAsync unitOfWorkAsync,
     IEmployeeLoginBLL employeeLoginService)
 {
     _unitOfWorkAsync = unitOfWorkAsync;
     _employeeLoginService = employeeLoginService;
     _employeeService = employeeService;
     _departmentRoleService = departmentRoleService;
     _departmentService = departmentService;
 }
コード例 #27
0
ファイル: StripePlugin.cs プロジェクト: DemOneEh/beyourmarket
        public StripePlugin(
            ISettingDictionaryService settingDictionaryService,
            IUnitOfWorkAsync unitOfWorkAsync)
        {
            _settingDictionaryService = settingDictionaryService;
            _unitOfWorkAsync = unitOfWorkAsync;

            AddRoute(HookName.Payment, new RouteValueDictionary
                {
                    { "action", "Payment" }, 
                    { "controller", "PaymentStripe" }, 
                    { "namespaces", "Plugin.Payment.Stripe.Controllers"},
                    { "area", null},
                    { "hookName", HookName.Payment}
                });

            AddRoute(HookName.PaymentSetting, new RouteValueDictionary
                {
                    { "action", "PaymentSetting" }, 
                    { "controller", "PaymentStripe" }, 
                    { "namespaces", "Plugin.Payment.Stripe.Controllers"},
                    { "area", null},
                    { "hookName", HookName.PaymentSetting}
                });

            AddRoute(HookName.Transaction, new RouteValueDictionary
                {
                    { "action", "Transaction" }, 
                    { "controller", "PaymentStripe" }, 
                    { "namespaces", "Plugin.Payment.Stripe.Controllers"},
                    { "area", null},
                    { "hookName", HookName.Transaction}
                });

            AddRoute(HookName.TransactionOverview, new RouteValueDictionary
                {
                    { "action", "TransactionOverview" }, 
                    { "controller", "PaymentStripe" }, 
                    { "namespaces", "Plugin.Payment.Stripe.Controllers"},
                    { "area", null},
                    { "hookName", HookName.TransactionOverview}
                });

            AddRoute(HookName.Configuration, new RouteValueDictionary {                 
                { "action", "Configure" }, 
                { "controller", "PaymentStripe" }, 
                { "namespaces", "Plugin.Payment.Stripe.Controllers" }, 
                { "area", null } 
            });
        }
コード例 #28
0
ファイル: LgaService.cs プロジェクト: surifoll/git-test
 public LgaService(IUnitOfWorkAsync unitOfWork, ILgaRepository repository, IUserProfileService userProfileService,
     IUserProfileRepository userProfileRepository, IUtilityService utilityService,
     IApprovalService approvalService, IWorkflowService workflowService, IWorkFlowSetupService workFlowSetupService)
 {
     _unitOfWork = unitOfWork;
     _repository = repository;
     _userProfileService = userProfileService;
     _userProfileRepository = userProfileRepository;
     _utilityService = utilityService;
     _approvalService = approvalService;
     _workflowService = workflowService;
     _workFlowSetupService = workFlowSetupService;
     Mapper.CreateMap<UserProfile, UserProfileItem>();
 }
コード例 #29
0
ファイル: TestHelper.cs プロジェクト: densem-2013/ACSDining
        public static List<Dish> GetDishes(IUnitOfWorkAsync unitOfWork)
        {
            Dish[] dishArray = unitOfWork.GetContext().Dishes.ToArray();
            string[] categories = MapHelper.GetCategoriesStrings(unitOfWork);

            Func<string, IEnumerable<Dish>, int> countDish = (str, list) =>
            {
                int coun = list.Count(el => string.Equals(el.DishType.Category, str));
                return coun;
            };
            Dictionary<string, int> catCount = categories.ToDictionary(cat => cat, count => countDish(count, dishArray));
            Func<List<Dish>> getDishes = () =>
            {
                return catCount.Select(pair => dishArray.Where(d => string.Equals(d.DishType.Category, pair.Key)).ElementAt(Rand.Next(pair.Value))).ToList();
            };

            return getDishes();
        }
コード例 #30
0
        public ManageController(
            IUnitOfWorkAsync unitOfWorkAsync,
            ISettingService settingService,
            ICategoryService categoryService,
            IListingService listingService,
            IPictureService pictureService,
            IListingPictureService ListingPictureservice,
            IOrderService orderService,
            ICustomFieldService customFieldService,
            ICustomFieldCategoryService customFieldCategoryService,
            ICustomFieldListingService customFieldListingService,
            ISettingDictionaryService settingDictionaryService,
            IListingStatService listingStatservice,
            IMessageService messageService,
            IMessageThreadService messageThreadService,
            IMessageParticipantService messageParticipantService,
            IMessageReadStateService messageReadStateService,
            DataCacheService dataCacheService,
            SqlDbService sqlDbService)
        {
            _settingService = settingService;
            _settingDictionaryService = settingDictionaryService;

            _categoryService = categoryService;
            _listingService = listingService;
            _pictureService = pictureService;
            _ListingPictureservice = ListingPictureservice;
            _orderService = orderService;

            _messageService = messageService;
            _messageThreadService = messageThreadService;
            _messageParticipantService = messageParticipantService;
            _messageReadStateService = messageReadStateService;

            _customFieldService = customFieldService;
            _customFieldCategoryService = customFieldCategoryService;
            _customFieldListingService = customFieldListingService;
            _listingStatservice = listingStatservice;

            _dataCacheService = dataCacheService;
            _sqlDbService = sqlDbService;

            _unitOfWorkAsync = unitOfWorkAsync;
        }
コード例 #31
0
 public ChangeOrSetAmountCommandHandler(IUnitOfWorkAsync unitOfWorkAsync
                                        , IRepositoryAsync <PaymentTransactionState, Guid> aggregateRootRepository
                                        , IObjectMapper objectMapper) : base(unitOfWorkAsync, aggregateRootRepository, objectMapper)
 {
 }
コード例 #32
0
 public Service_Account(IUnitOfWorkAsync uow, ILog Logger) : base(uow)
 {
     _uow    = uow;
     _logger = Logger;
     _repo   = _uow.RepositoryAsync <tbl_User>();
 }
コード例 #33
0
 protected virtual IViewRepositoryAsync <TEntity> CreateViewRepository(
     IUnitOfWorkAsync unitOfWork)
 {
     return(unitOfWork.ViewRepositoryAsync <TEntity>());
 }
コード例 #34
0
 public DirectPaymentCommandHandler(IUnitOfWorkAsync unitOfWorkAsync
                                    , IRepositoryAsync <PaymentTransaction, Guid> aggregateRootRepository) : base(unitOfWorkAsync, aggregateRootRepository)
 {
 }
コード例 #35
0
 public Service_GridSettings(IUnitOfWorkAsync uow, ILog Logger) : base(uow)
 {
     _uow    = uow;
     _logger = Logger;
 }
コード例 #36
0
 public BackageReservationFacade(IBackageReservationService backageReservationService, IUnitOfWorkAsync unitOfWork) : base(unitOfWork)
 {
     _backageReservationService = backageReservationService;
 }
コード例 #37
0
ファイル: HomeController.cs プロジェクト: workcard/CafeT
 //private string UserName { set; get; } = "*****@*****.**";
 public HomeController(IUnitOfWorkAsync unitOfWorkAsync) : base(unitOfWorkAsync)
 {
 }
コード例 #38
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Alim_FuenteRepository"/> class.
 /// </summary>
 /// <param name="context">The context.</param>
 /// <param name="unitOfWork">The unit of work.</param>
 public Alim_FuenteRepository(DbContext context, IUnitOfWorkAsync unitOfWork) : base(context, unitOfWork)
 {
 }
コード例 #39
0
 public UserProfileService(IUnitOfWorkAsync unitOfWork, IRepositoryAsync <UserAccount> repository)
     : base(unitOfWork)
 {
     _repository = repository;
 }
コード例 #40
0
 public ResultRepository(IDataContextAsync context, IUnitOfWorkAsync unitOfWork)
     : base(context, unitOfWork)
 {
 }
コード例 #41
0
 public RequestHandler(IUnitOfWorkAsync uow, IQueryRepositoryFactory queryRepositoryFactory)
     : base(uow, queryRepositoryFactory)
 {
 }
コード例 #42
0
 public IAOsController(IUnitOfWorkAsync unitOfWork)
 {
     _unitOfWork = unitOfWork;
 }
コード例 #43
0
 public CustomDataController(ICustomFieldService customFieldService, ICustomDataService customDataService, ICustomListService customListService, IUnitOfWorkAsync unitOfWork)
 {
     _customDataService  = customDataService;
     _customListService  = customListService;
     _customFieldService = customFieldService;
     _unitOfWork         = unitOfWork;
 }
コード例 #44
0
 public ViewBusinessRuleBase(IDataContextAsync dataContext)
 {
     this.unitOfWork = (IUnitOfWorkAsync) new OMF.EntityFramework.Ef6.UnitOfWork(dataContext);
     this.oprKeys    = this.CreateOperationKeys();
 }
コード例 #45
0
 public UserService(IUnitOfWorkAsync unitOfWork, IUserRepository repository)
 {
     _unitOfWork      = unitOfWork;
     this._repository = repository;
 }
コード例 #46
0
 public UserRepository(DbContext context, IUnitOfWorkAsync unitOfWork) : base(context, unitOfWork)
 {
 }
コード例 #47
0
 public MemuInforController(IUnitOfWorkAsync unitOfWork)
 {
     _unitOfWork = unitOfWork;
 }
コード例 #48
0
 public OrdersController(IOrderService orderService, IUnitOfWorkAsync unitOfWork)
 {
     _orderService = orderService;
     _unitOfWork   = unitOfWork;
 }
コード例 #49
0
 public PolicyRepository(ApplicationDbContext context, IUnitOfWorkAsync uow)   : base(context, uow)
 {
 }
コード例 #50
0
 public GameService(IUnitOfWorkAsync unitOfWork) : base(unitOfWork)
 {
 }
コード例 #51
0
 public AccountController(ApplicationUserManager userManager,
                          ISecureDataFormat <AuthenticationTicket> accessTokenFormat, IArchiveNoService archiveNoService, IUnitOfWorkAsync unitOfWork, ICustomerProfileService customerProfileService, IService <CustomerAccounnt> service, ICustomerAccounntService customerAccounntService, IHttpService httpService)
 {
     UserManager              = userManager;
     AccessTokenFormat        = accessTokenFormat;
     _archiveNoService        = archiveNoService;
     this._unitOfWork         = unitOfWork;
     _customerProfileService  = customerProfileService;
     _customerAccounntService = customerAccounntService;
     _httpService             = httpService;
 }
コード例 #52
0
 public GetMyInformationAssetsUsecase(IUnitOfWorkAsync unitOfWork)
 {
     _unitOfWork = unitOfWork;
 }
コード例 #53
0
 public RepositoryCached(IDataContextAsync context, IUnitOfWorkAsync unitOfWork)
     : base(context, unitOfWork)
 {
 }
コード例 #54
0
 public ViewBusinessRuleBase(IUnitOfWorkAsync unitOfWork)
 {
     this.unitOfWork             = unitOfWork;
     this.businessOwnsUnitOfWork = false;
     this.oprKeys = this.CreateOperationKeys();
 }
コード例 #55
0
ファイル: EmployeesController.cs プロジェクト: jeffjuarez/OI
 public EmployeesController(IUnitOfWorkAsync unitOfWorkAsync,
                            IRepositoryAsync <Employee> employeeRepositoryAsync)
 {
     _employeeRepositoryAsync = employeeRepositoryAsync;
     _unitOfWorkAsync         = unitOfWorkAsync;
 }
コード例 #56
0
 public ProductionProcessesController(IProductionProcessService productionProcessService, IUnitOfWorkAsync unitOfWork)
 {
     _productionProcessService = productionProcessService;
     _unitOfWork = unitOfWork;
 }
コード例 #57
0
        public UserAccountService(IServiceProvider serviceProvider, IUnitOfWorkAsync unitOfWork) : base(unitOfWork)
        {
            _crypto = (ICrypto)serviceProvider.GetService(typeof(ICrypto));
            var settings = (IOptions <AppSettings>)serviceProvider.GetService(typeof(IOptions <AppSettings>));

            _settings = settings.Value;
            _logger   = (ILogger <UserAccountService>)serviceProvider.GetService(typeof(ILogger <UserAccountService>));

            Settings = settings.Value.Auth;

            AddEventHandler(new EmailUserAccountEventsHandler(serviceProvider));

            var accountvalidators = new UserAccountValidators();

            _usernameValidator = new Lazy <AggregateValidator <UserAccount> >(() =>
            {
                var val = new AggregateValidator <UserAccount>();
                if (!_settings.Auth.EmailIsUsername)
                {
                    val.Add(UserAccountValidation.UsernameDoesNotContainAtSign);
                    val.Add(UserAccountValidation.UsernameCanOnlyStartOrEndWithLetterOrDigit);
                    val.Add(UserAccountValidation.UsernameOnlyContainsValidCharacters);
                    val.Add(UserAccountValidation.UsernameOnlySingleInstanceOfSpecialCharacters);
                }
                val.Add(UserAccountValidation.UsernameMustNotAlreadyExist);
                val.Add(accountvalidators.UsernameValidator);
                return(val);
            });

            _emailValidator = new Lazy <AggregateValidator <UserAccount> >(() =>
            {
                var val = new AggregateValidator <UserAccount>
                {
                    UserAccountValidation.EmailIsRequiredIfRequireAccountVerificationEnabled,
                    UserAccountValidation.EmailIsValidFormat,
                    UserAccountValidation.EmailMustNotAlreadyExist,
                    accountvalidators.EmailValidator
                };
                return(val);
            });

            _phoneNumberValidator = new Lazy <AggregateValidator <UserAccount> >(() =>
            {
                var val = new AggregateValidator <UserAccount>
                {
                    UserAccountValidation.PhoneNumberIsRequiredIfRequireAccountVerificationEnabled,
                    UserAccountValidation.PhoneNumberMustNotAlreadyExist,
                    accountvalidators.PhoneNumberValidator
                };
                return(val);
            });

            _passwordValidator = new Lazy <AggregateValidator <UserAccount> >(() =>
            {
                var val = new AggregateValidator <UserAccount>
                {
                    UserAccountValidation.PasswordMustBeDifferentThanCurrent,
                    accountvalidators.PasswordValidator
                };
                return(val);
            });
        }
コード例 #58
0
 public LoginController(IUnitOfWorkAsync iUnitOfWorkAsync,
                        IServiceUser iServiceUser)
 {
     this.iUnitOfWorkAsync = iUnitOfWorkAsync;
     this.iServiceUser     = iServiceUser;
 }
コード例 #59
0
ファイル: ProjectManager.cs プロジェクト: workcard/CafeT
 public ProjectManager(IUnitOfWorkAsync unitOfWorkAsync) : base(unitOfWorkAsync)
 {
     _unitOfWorkAsync = unitOfWorkAsync;
 }
コード例 #60
0
 public CommandHandlerBase(IUnitOfWorkAsync unitOfWorkAsync
                           , IRepositoryAsync <TAggregateRoot, int> aggregateRootRepository
                           , IObjectMapper objectMapper) : base(unitOfWorkAsync, aggregateRootRepository, objectMapper)
 {
 }