Exemplo n.º 1
0
 public Bank(IFileHandler fileHandler,
             ICustomerHandler customerHandler,
             ITransactionHandler transactionHandler,
             IAccountHandler accountHandler)
 {
     _fileHandler        = fileHandler;
     _customerHandler    = customerHandler;
     _transactionHandler = transactionHandler;
     _accountHandler     = accountHandler;
 }
 public AccountController(IAccountHandler accountHandler,
                          IPayeLevySubmissionsHandler payeLevySubmissionsHandler,
                          ILog log,
                          IPayeLevyMapper payeLevyDeclarationMapper)
 {
     _accountHandler             = accountHandler;
     _payeLevySubmissionsHandler = payeLevySubmissionsHandler;
     _log            = log;
     _payeLevyMapper = payeLevyDeclarationMapper;
 }
Exemplo n.º 3
0
 public DeletePersonalDataModel(
     UserManager <IdentityUser> userManager,
     SignInManager <IdentityUser> signInManager,
     ILogger <DeletePersonalDataModel> logger,
     IAccountHandler accountHandler
     )
 {
     _userManager        = userManager;
     _signInManager      = signInManager;
     _logger             = logger;
     this.accountHandler = accountHandler;
 }
 public AccountController(IAccountHandler accountHandler,
                          IPayeLevySubmissionsHandler payeLevySubmissionsHandler,
                          ILog log,
                          IPayeLevyMapper payeLevyDeclarationMapper,
                          HttpContextBase httpContext)
 {
     _accountHandler             = accountHandler;
     _payeLevySubmissionsHandler = payeLevySubmissionsHandler;
     _log            = log;
     _payeLevyMapper = payeLevyDeclarationMapper;
     _httpContext    = httpContext;
 }
Exemplo n.º 5
0
        public SettingsViewModel()
        {
            _accountHandler = EdenKernel.Get<IAccountHandler>();
            _configurationManager = EdenKernel.Get<IConfigurationManager>();
            _configuration = _configurationManager.LoadConfiguration();

            if (_configuration.SaveUsername)
            {
                SaveUsername = _configuration.SaveUsername;
                Username = _configuration.Username;
            }

            LoginCommand = new AsynchronousCommand(Login);
            GetCommand = new AsynchronousCommand(Get);
        }
Exemplo n.º 6
0
        public RegisterModel(
            UserManager <IdentityUser> userManager,
            SignInManager <IdentityUser> signInManager,
            ILogger <RegisterModel> logger,
            IEmailSender emailSender,
            IPasswordHasher <IdentityUser> passwordHasher,
            IAccountHandler _accountHandler
            )
        {
            _userManager = userManager;
            userManager.PasswordHasher = passwordHasher;

            _signInManager = signInManager;
            _logger        = logger;
            _emailSender   = emailSender;
            accountHandler = _accountHandler;
        }
Exemplo n.º 7
0
 public static bool InitHandlers(
     IDatabaseHandler DataBaseHandler,
     IAccountHandler AccountHandler,
     IUserHandler UserHandler,
     string SystemLocation)
 {
     if (databaseHandler == null)
     {
         databaseHandler = DataBaseHandler;
     }
     if (accountHandler == null)
     {
         accountHandler = AccountHandler;
     }
     if (userHandler == null)
     {
         userHandler = UserHandler;
     }
     _SystemLocation = SystemLocation;
     return(true);
 }
Exemplo n.º 8
0
        public ImperaturMarket(string SystemLocation)
        {
            _databaseHandler           = ImperaturGlobal.Kernel.Get <IDatabaseHandler>();
            _accountHandler            = ImperaturGlobal.Kernel.Get <IAccountHandler>();
            _userHandler               = ImperaturGlobal.Kernel.Get <IUserHandler>();
            _tradeHandler              = ImperaturGlobal.Kernel.Get <ITradeHandler>();
            _securityHandler           = ImperaturGlobal.Kernel.Get <ISecurityHandler>();
            _systemHandler             = ImperaturGlobal.Kernel.Get <ISystemHandler>();
            _logicalTransactionHandler = ImperaturGlobal.Kernel.Get <ILogicalTransactionHandler>();

            ImperaturGlobal.InitHandlers(DatabaseHandler, AccountHandler, UserHandler, SystemLocation);


            if (!_systemHandler.VerifySystem(SystemLocation))
            {
                _systemHandler.CreateSystem(SystemLocation);
            }
            //var t = _accountHandler.Accounts();
            //int gg = 0;

            /*
             *
             * var UserToAdd = new User
             * {
             *  _firstName = "Urban",
             *  _city = "Slätte",
             *  _lastName = "Kolkesson",
             *  _postalCode = "1234",
             *  _cultureInfo = "sv-se",
             *  _hashedPassword = "******",
             *  _idNumber = "7451651",
             *  _salt = new byte[] {22},
             *  _street = "poasdas vägen"
             * };
             * int id = _userHandler.AddUser(UserToAdd);
             * var AccountToAdd = new Account
             * {
             *  AccountType = AccountType.Customer,
             *  Owner = _userHandler.GetUser(id)
             * };
             *
             * _accountHandler.AddAccount(AccountToAdd);
             *
             * var HouseUserToAdd = new User
             * {
             *  _firstName = "New Shiny Bolaget AB",
             *  _city = "Stockholm",
             *  _lastName = "",
             *  _postalCode = "11040",
             *  _cultureInfo = "sv-se",
             *  _hashedPassword = "******",
             *  _idNumber = "7451651",
             *  _salt = new byte[] { 22 },
             *  _street = "fina gatan 22B"
             * };
             *
             * int Houseid = _userHandler.AddUser(HouseUserToAdd);
             *
             * var HouseAccountToAdd = new Account
             * {
             *  AccountType = AccountType.House,
             *  Owner =_userHandler.GetUser(Houseid)
             * };
             * int HouseAccountId = _accountHandler.AddAccount(HouseAccountToAdd);
             *
             * var sdf = _userHandler.GetUser(Houseid);
             *
             * AccountToAdd = new Account
             * {
             *  AccountType = AccountType.Bank,
             *  Owner = _userHandler.GetUser(Houseid)
             * };
             * _accountHandler.AddAccount(AccountToAdd);
             */
        }
 public AccountController(IAccountHandler accountHandler)
 {
     _accountHandler = accountHandler;
 }
Exemplo n.º 10
0
 public TransferHandler(IAccountHandler accountHandler)
 {
     _accountHandler = accountHandler;
 }
 public SearchController(IAccountHandler handler)
 {
     _handler = handler;
 }
Exemplo n.º 12
0
 public AccountController(IAccountHandler accountService)
 {
     _accountService = accountService;
 }
Exemplo n.º 13
0
 public AccountController(ILogger <AccountController> logger, IAccountHandler accountHandler) : base(logger)
 {
     _accountHandler = accountHandler;
 }