Пример #1
0
 public AccountBll(
     IDbFactory dbFactory,
     IAccountDal accountDal)
 {
     _dbFactory  = dbFactory;
     _accountDal = accountDal;
 }
Пример #2
0
 public TransactionManager(ITransactionDal transaction, IMapper mapper, IAccountService accountService, IAccountDal accountDal)
 {
     _transaction    = transaction;
     _mapper         = mapper;
     _accountService = accountService;
     _accountDal     = accountDal;
 }
Пример #3
0
 public Register(IAccountDal accountDal, IUserInfoDal userInfoDal, IAdressDal adressDal, ICardInfoDal cardinfoDal)
 {
     this._accountDal  = accountDal;
     this._userInfoDal = userInfoDal;
     this._adressDal   = adressDal;
     this._cardinfoDal = cardinfoDal;
 }
Пример #4
0
 public AccountBll(
     ILogger logger,
     IAccountDal accountDal)
 {
     _logger     = logger;
     _accountDal = accountDal;
 }
Пример #5
0
        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);
        }
Пример #6
0
 public void SetUp()
 {
     mocks = new MockRepository();
     //员工
     _IAccountDal    = (IAccountDal)mocks.CreateMock(typeof(IAccountDal));
     _CurrentAccount = new Account(1, "", "");
     _NewAccount     = new Account(1, "", "");
 }
Пример #7
0
 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;
 }
Пример #8
0
        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);
        }
Пример #9
0
        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);
        }
Пример #10
0
 public AccountManager(IAccountDal accountDal)
 {
     this.accountDal = accountDal;
 }
Пример #11
0
 public Account(IAccountDal accountDal)
 {
     _accountDal = accountDal;
 }
Пример #12
0
 public AccountBo(IAccountDal accountDal)
 {
     this._accountDal = accountDal;
 }
Пример #13
0
 public UserInfo(IAccountDal accountDal, IUserInfoDal userInfoDal)
 {
     _accountDal  = accountDal;
     _userInfoDal = userInfoDal;
 }
Пример #14
0
 public StaffController()
 {
     this.adminWebDB = new AdminWebDal(new AdminWebDalDataContext());
     this.accountDB  = new AccountDal(new AccountDataContext(), new AdminWebDalDataContext());
 }
Пример #15
0
 public Uow(UowContext context)
 {
     _context   = context;
     AccountDal = new EFAccountRepository(_context);
 }
Пример #16
0
 public AccountBll(IAccountDal dal)
 {
     _dal = dal;
 }
 public AccountManager(IAccountDal accountdal, IMapper mapper, IValidator <Account> validator)
 {
     _accountDal       = accountdal;
     _mapper           = mapper;
     _accountValidator = validator;
 }
Пример #18
0
 public AccountLogic(IAccountDal accountDal)
 {
     _accountDal = accountDal;
 }
Пример #19
0
 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());
 }
Пример #20
0
 public PetitionManager(IPetitionDal petitionDal, IContentService contentService, IAccountDal accountDal)
 {
     _petitionDal    = petitionDal;
     _contentService = contentService;
     _accountDal     = accountDal;
 }
Пример #21
0
 public NotificationController()
 {
     this.adminWebDB = new AdminWebDal(new AdminWebDalDataContext());
     this.accountDB  = new AccountDal(new AccountDataContext(), new AdminWebDalDataContext());
 }
Пример #22
0
 public AccountManager(IAccountDal AccountDal)
 {
     _AccountDal = AccountDal;
 }
Пример #23
0
 public AccountManager(IAccountDal accountDal)
 {
     _accountDal = accountDal;
 }
Пример #24
0
 public SavePersonalConfig(IAccountDal iAccountDal, Account account, byte[] electronIdiograph)
 {
     _IAccountDal       = iAccountDal;
     _Account           = account;
     _ElectronIdiograph = electronIdiograph;
 }
Пример #25
0
 public LoginManager(IAccountDal accountDal)
 {
     this.accountDal = accountDal;
 }
Пример #26
0
 public ProductManager(IProductDal productDal, IAccountDal accountDal)
 {
     this.productDal = productDal;
     this.accountDal = accountDal;
 }