public AccountBll( IDbFactory dbFactory, IAccountDal accountDal) { _dbFactory = dbFactory; _accountDal = accountDal; }
public TransactionManager(ITransactionDal transaction, IMapper mapper, IAccountService accountService, IAccountDal accountDal) { _transaction = transaction; _mapper = mapper; _accountService = accountService; _accountDal = accountDal; }
public Register(IAccountDal accountDal, IUserInfoDal userInfoDal, IAdressDal adressDal, ICardInfoDal cardinfoDal) { this._accountDal = accountDal; this._userInfoDal = userInfoDal; this._adressDal = adressDal; this._cardinfoDal = cardinfoDal; }
public AccountBll( ILogger logger, IAccountDal accountDal) { _logger = logger; _accountDal = accountDal; }
public List <Account> GetAccountByNameString(string sendAccount, out string errorname) { IAccountDal IAccountDal = DalInstance.AccountDalInstance; errorname = string.Empty; List <Account> retaccounts = new List <Account>(); sendAccount = sendAccount.Replace(" ", ""); sendAccount = sendAccount.Replace(" ", ""); sendAccount = sendAccount.Replace('(', '('); sendAccount = sendAccount.Replace(')', ')'); sendAccount = sendAccount.Replace(';', ';'); string[] accounts = sendAccount.Split(';'); for (int i = 0; i < accounts.Length; i++) { accounts[i] = accounts[i].Trim(); Account account = IAccountDal.GetAccountByName(accounts[i]); if (account == null) { errorname += string.IsNullOrEmpty(errorname) ? accounts[i] : "," + accounts[i]; } else { if (Model.Utility.Tools.FindAccountById(retaccounts, account.Id) == null) { account = IAccountDal.GetAccountById(account.Id); retaccounts.Add(account); } } } return(retaccounts); }
public void SetUp() { mocks = new MockRepository(); //员工 _IAccountDal = (IAccountDal)mocks.CreateMock(typeof(IAccountDal)); _CurrentAccount = new Account(1, "", ""); _NewAccount = new Account(1, "", ""); }
public AccountService(ILogProvider log, IAccountDal dal, IAccountValidator validator, IAccountChangeHandler changeHandler, ICryptoProvider cryptoProvider) { this.log = log; this.dal = dal; this.changeHandler = changeHandler; this.validator = validator; this.cryptoProvider = cryptoProvider; }
protected override void ExcuteSelf() { _AccountGroup.AccountList = new List <Account>(); IAccountDal IAccountDal = DalInstance.AccountDalInstance; foreach (string s in _AccountMember.Split(';')) { Account account = IAccountDal.GetAccountByName(s); if (account != null) { _AccountGroup.AccountList.Add(account); } } DalInstance.AccountGroupDalInstance.Update(_AccountGroup); }
public void FillDatabase() { Account ac1 = new Account(); ac1.Username = "******"; ac1.Firstname = "Enes"; ac1.Lastname = "Celik"; ac1.Password = "******"; ac1.Mail = "*****@*****.**"; Account ac2 = new Account(); ac2.Username = "******"; ac2.Firstname = "Ersoy"; ac2.Lastname = "Toraman"; ac2.Password = "******"; ac2.Mail = "*****@*****.**"; Account ac3 = new Account(); ac3.Username = "******"; ac3.Firstname = "Mert"; ac3.Lastname = "Geren"; ac3.Password = "******"; ac3.Mail = "*****@*****.**"; Product pr1 = new Product(); pr1.Name = "Iphone6"; pr1.City = "manisa"; pr1.Description = "Sıfır sayılır."; IAccountDal accountDal = IocUtil.Resolve <IAccountDal>(); IProductDal producttDal = IocUtil.Resolve <IProductDal>(); ICategoryDal categoryDal = IocUtil.Resolve <ICategoryDal>(); accountDal.Add(ac1); accountDal.Add(ac2); accountDal.Add(ac3); producttDal.Add(pr1); producttDal.GetList(x => x.Id == ac1.Id); }
public AccountManager(IAccountDal accountDal) { this.accountDal = accountDal; }
public Account(IAccountDal accountDal) { _accountDal = accountDal; }
public AccountBo(IAccountDal accountDal) { this._accountDal = accountDal; }
public UserInfo(IAccountDal accountDal, IUserInfoDal userInfoDal) { _accountDal = accountDal; _userInfoDal = userInfoDal; }
public StaffController() { this.adminWebDB = new AdminWebDal(new AdminWebDalDataContext()); this.accountDB = new AccountDal(new AccountDataContext(), new AdminWebDalDataContext()); }
public Uow(UowContext context) { _context = context; AccountDal = new EFAccountRepository(_context); }
public AccountBll(IAccountDal dal) { _dal = dal; }
public AccountManager(IAccountDal accountdal, IMapper mapper, IValidator <Account> validator) { _accountDal = accountdal; _mapper = mapper; _accountValidator = validator; }
public AccountLogic(IAccountDal accountDal) { _accountDal = accountDal; }
public AccountController() : this(new UserManager <ApplicationUser>(new UserStore <ApplicationUser>(new ApplicationDbContext()))) { this.adminWebDB = new AdminWebDal(new AdminWebDalDataContext()); this.accountDB = new AccountDal(new AccountDataContext(), new AdminWebDalDataContext()); }
public PetitionManager(IPetitionDal petitionDal, IContentService contentService, IAccountDal accountDal) { _petitionDal = petitionDal; _contentService = contentService; _accountDal = accountDal; }
public NotificationController() { this.adminWebDB = new AdminWebDal(new AdminWebDalDataContext()); this.accountDB = new AccountDal(new AccountDataContext(), new AdminWebDalDataContext()); }
public AccountManager(IAccountDal AccountDal) { _AccountDal = AccountDal; }
public AccountManager(IAccountDal accountDal) { _accountDal = accountDal; }
public SavePersonalConfig(IAccountDal iAccountDal, Account account, byte[] electronIdiograph) { _IAccountDal = iAccountDal; _Account = account; _ElectronIdiograph = electronIdiograph; }
public LoginManager(IAccountDal accountDal) { this.accountDal = accountDal; }
public ProductManager(IProductDal productDal, IAccountDal accountDal) { this.productDal = productDal; this.accountDal = accountDal; }