private void InitApp()
        {
            // Init Xamarin Forms
            Forms.Init();

            if (ServiceContainer.RegisteredServices.Count > 0)
            {
                ServiceContainer.Reset();
            }
            iOSCoreHelpers.RegisterLocalServices();
            var deviceActionService = ServiceContainer.Resolve<IDeviceActionService>("deviceActionService");
            var messagingService = ServiceContainer.Resolve<IMessagingService>("messagingService");
            ServiceContainer.Init(deviceActionService.DeviceUserAgent, 
                Bit.Core.Constants.iOSAutoFillClearCiphersCacheKey, Bit.Core.Constants.iOSAllClearCipherCacheKeys);
            iOSCoreHelpers.InitLogger();
            iOSCoreHelpers.Bootstrap();
            var appOptions = new AppOptions { IosExtension = true };
            var app = new App.App(appOptions);
            ThemeManager.SetTheme(app.Resources);
            iOSCoreHelpers.AppearanceAdjustments();
            _nfcDelegate = new Core.NFCReaderDelegate((success, message) =>
                messagingService.Send("gotYubiKeyOTP", message));
            iOSCoreHelpers.SubscribeBroadcastReceiver(this, _nfcSession, _nfcDelegate);

            _accountsManager = ServiceContainer.Resolve<IAccountsManager>("accountsManager");
            _accountsManager.Init(() => appOptions, this);
        }
 // GET: Accounts/Account
 public AccountController(IClientManager iClientManager, ICommonManager iCommonManager, IAccountsManager iAccountsManager, IProductReturnManager iProductReturnManager)
 {
     _iClientManager        = iClientManager;
     _iCommonManager        = iCommonManager;
     _iAccountsManager      = iAccountsManager;
     _iProductReturnManager = iProductReturnManager;
 }
Пример #3
0
 public SettingsController(IAccountsManager accountsManager, ILoginCredentialsQuery loginCredentialsQuery, IFaqsQuery faqsQuery, IUsersQuery usersQuery, ISettingsCommand settingsCommand, ISettingsQuery settingsQuery)
     : base(accountsManager, loginCredentialsQuery, faqsQuery)
 {
     _usersQuery      = usersQuery;
     _settingsCommand = settingsCommand;
     _settingsQuery   = settingsQuery;
 }
Пример #4
0
 public ActivationController(IAccountsManager accountsManager, ILoginCredentialsQuery loginCredentialsQuery, IFaqsQuery faqsQuery, IMemberAccountsCommand memberAccountsCommand, IAccountVerificationsCommand accountVerificationsCommand, IAuthenticationManager authenticationManager)
     : base(accountsManager, loginCredentialsQuery, faqsQuery)
 {
     _memberAccountsCommand       = memberAccountsCommand;
     _accountVerificationsCommand = accountVerificationsCommand;
     _authenticationManager       = authenticationManager;
 }
Пример #5
0
 public ReportsController(IReportManager iReportManager, IAccountsManager iAccountsManager, IClientManager iClientManager, ICommonManager iCommonManager)
 {
     _iReportManager   = iReportManager;
     _iAccountsManager = iAccountsManager;
     _iClientManager   = iClientManager;
     _iCommonManager   = iCommonManager;
 }
Пример #6
0
 public AccountController(IVatManager iVatManager, IClientManager iClientManager, IDiscountManager iDiscountManager, IAccountsManager iAccountsManager)
 {
     _iVatManager      = iVatManager;
     _iClientManager   = iClientManager;
     _iDiscountManager = iDiscountManager;
     _iAccountsManager = iAccountsManager;
 }
Пример #7
0
 public JobAdController(IEmployerJobAdsCommand employerJobAdsCommand, IAnonymousJobAdsCommand anonymousJobAdsCommand, IEmployerLogosCommand employerLogosCommand, IJobAdsCommand jobAdsCommand, IJobAdsQuery jobAdsQuery, IJobPostersQuery jobPostersQuery, IMemberJobAdViewsQuery memberJobAdViewsQuery, ICreditsQuery creditsQuery, IProductsQuery productsQuery, ICouponsQuery couponsQuery, IOrdersCommand ordersCommand, IOrdersQuery ordersQuery, IEmployerAllocationsCommand employerAllocationsCommand, IEmployerCreditsQuery employerCreditsQuery, IEmployerOrdersCommand employerOrdersCommand, IEmployerOrdersQuery employerOrdersQuery, ILocationQuery locationQuery, IIndustriesQuery industriesQuery, IAccountsManager accountsManager, ILoginCredentialsQuery loginCredentialsQuery, ILoginAuthenticationCommand loginAuthenticationCommand, IAuthenticationManager authenticationManager)
 {
     _employerJobAdsCommand      = employerJobAdsCommand;
     _anonymousJobAdsCommand     = anonymousJobAdsCommand;
     _employerLogosCommand       = employerLogosCommand;
     _jobAdsCommand              = jobAdsCommand;
     _jobAdsQuery                = jobAdsQuery;
     _jobPostersQuery            = jobPostersQuery;
     _memberJobAdViewsQuery      = memberJobAdViewsQuery;
     _creditsQuery               = creditsQuery;
     _productsQuery              = productsQuery;
     _couponsQuery               = couponsQuery;
     _ordersCommand              = ordersCommand;
     _ordersQuery                = ordersQuery;
     _employerAllocationsCommand = employerAllocationsCommand;
     _employerCreditsQuery       = employerCreditsQuery;
     _employerOrdersCommand      = employerOrdersCommand;
     _employerOrdersQuery        = employerOrdersQuery;
     _locationQuery              = locationQuery;
     _industriesQuery            = industriesQuery;
     _accountsManager            = accountsManager;
     _loginCredentialsQuery      = loginCredentialsQuery;
     _loginAuthenticationCommand = loginAuthenticationCommand;
     _authenticationManager      = authenticationManager;
 }
Пример #8
0
 public JoinController(IPageflowEngine pageflowEngine, IAccountsManager accountsManager, IMemberAccountsCommand memberAccountsCommand, IAccountVerificationsCommand accountVerificationsCommand, IMembersQuery membersQuery, ICandidatesCommand candidatesCommand, ICandidatesQuery candidatesQuery, ICandidateResumesCommand candidateResumesCommand, IResumesQuery resumesQuery, IAffiliationItemsFactory affiliationItemsFactory, IMemberAffiliationsCommand memberAffiliationsCommand, IMemberAffiliationsQuery memberAffiliationsQuery, IMemberStatusQuery memberStatusQuery, IFilesQuery filesQuery, ILocationQuery locationQuery, IIndustriesQuery industriesQuery, IReferralsCommand referralsCommand, IReferralsQuery referralsQuery, IMemberFriendsCommand memberFriendsCommand, IMemberFriendsQuery memberFriendsQuery, ISettingsQuery settingsQuery, ISettingsCommand settingsCommand)
     : base(Routes, pageflowEngine)
 {
     _membersQuery                = membersQuery;
     _memberAccountsCommand       = memberAccountsCommand;
     _accountVerificationsCommand = accountVerificationsCommand;
     _accountsManager             = accountsManager;
     _candidatesQuery             = candidatesQuery;
     _candidatesCommand           = candidatesCommand;
     _candidateResumesCommand     = candidateResumesCommand;
     _resumesQuery                = resumesQuery;
     _filesQuery = filesQuery;
     _affiliationItemsFactory   = affiliationItemsFactory;
     _memberAffiliationsCommand = memberAffiliationsCommand;
     _memberAffiliationsQuery   = memberAffiliationsQuery;
     _memberStatusQuery         = memberStatusQuery;
     _locationQuery             = locationQuery;
     _industriesQuery           = industriesQuery;
     _referralsCommand          = referralsCommand;
     _referralsQuery            = referralsQuery;
     _memberFriendsCommand      = memberFriendsCommand;
     _memberFriendsQuery        = memberFriendsQuery;
     _settingsQuery             = settingsQuery;
     _settingsCommand           = settingsCommand;
 }
Пример #9
0
 private static IAccountsManager GetAccountsManager()
 {
     if (_accountsManager == null)
     {
         _accountsManager = Container.Current.Resolve <IAccountsManager>();
     }
     return(_accountsManager);
 }
Пример #10
0
 public AccountsSubscriptionsHandler(
     ILogger <AccountsSubscriptionsHandler> logger,
     IAccountsManager accountsManager
     )
 {
     _logger          = logger;
     _accountsManager = accountsManager;
 }
Пример #11
0
 public HomeController(IBranchManager iBranchManager, IClientManager iClientManager, IEmployeeManager iEmployeeManager, IProductManager iProductManager, IAccountsManager iAccountsManager)
 {
     _iBranchManager   = iBranchManager;
     _iClientManager   = iClientManager;
     _iEmployeeManager = iEmployeeManager;
     _iProductManager  = iProductManager;
     _iAccountsManager = iAccountsManager;
 }
Пример #12
0
 public ThongKeNhuanButController(IAuthorManager authorManager, IThongKeNhuanButManager thongKeNhuanButManager, IAccountsManager accountsManager, ITypesManager typesManager, ITheLoai_HeSoManager theLoai_HeSoManager)
 {
     this._thongKeNhuanButManager = thongKeNhuanButManager;
     this._accountsManager        = accountsManager;
     this._typesManager           = typesManager;
     this._theLoai_HeSoManager    = theLoai_HeSoManager;
     this._authorManager          = authorManager;
 }
Пример #13
0
 public HomeController(IAccountsManager accountsManager, ILoginCredentialsQuery loginCredentialsQuery, IFaqsQuery faqsQuery, IIndustriesQuery industriesQuery, ICacheManager cacheManager, int featuredItems, ILocationQuery locationQuery, IResourcesQuery resourcesQuery)
     : base(accountsManager, loginCredentialsQuery, faqsQuery)
 {
     _industriesQuery = industriesQuery;
     _cacheManager    = cacheManager;
     _featuredItems   = featuredItems;
     _locationQuery   = locationQuery;
     _resourcesQuery  = resourcesQuery;
 }
Пример #14
0
 public LinkedInController(IUserAccountsCommand userAccountsCommand, IAccountsManager accountsManager, IFaqsQuery faqsQuery, ILinkedInCommand linkedInCommand, ILinkedInQuery linkedInQuery, IIndustriesQuery industriesQuery)
 {
     _userAccountsCommand = userAccountsCommand;
     _accountsManager     = accountsManager;
     _faqsQuery           = faqsQuery;
     _linkedInCommand     = linkedInCommand;
     _linkedInQuery       = linkedInQuery;
     _industriesQuery     = industriesQuery;
 }
Пример #15
0
 public TransactionsSubscriptionsHandler(
     ILogger <TransactionsSubscriptionsHandler> logger,
     ITransactionsManager transactionsManager,
     IAccountsManager accountsManager
     )
 {
     _logger = logger;
     _transactionsManager = transactionsManager;
     _accountsManager     = accountsManager;
 }
 // GET: Sales/Client
 public ClientController(IClientManager iClientManager, ICommonManager iCommonManager, IRegionManager iRegionManager, ITerritoryGateway iTerritoryGateway, IDistrictManager iDistrictManager, IBranchManager iBranchManager, IAccountsManager iAccountsManager)
 {
     _iClientManager    = iClientManager;
     _iCommonManager    = iCommonManager;
     _iRegionManager    = iRegionManager;
     _iTerritoryGateway = iTerritoryGateway;
     _iDistrictManager  = iDistrictManager;
     _iBranchManager    = iBranchManager;
     _iAccountsManager  = iAccountsManager;
 }
 public AccountsController(
     ILogger <AccountsController> logger,
     IAccountsManager accountsManager,
     IHttpContextAccessor httpContextAccessor
     )
 {
     _logger              = logger;
     _accountsManager     = accountsManager;
     _httpContextAccessor = httpContextAccessor;
 }
Пример #18
0
        public AccountsManagerTests()
        {
            var publishEndpoint        = new PublishEndpointMockFactory <IAccountModel>().GetInstance();
            var accountsRepositoryMock = new RepositoryMockFactory <AccountEntity>(_accountEntities).GetInstance();

            _manager = new AccountsManager(
                new Mock <ILogger <AccountsManager> >().Object,
                new AccountsService(accountsRepositoryMock.Object),
                publishEndpoint.Object
                );
        }
Пример #19
0
 public HomeController(IBranchManager iBranchManager, IClientManager iClientManager, IDepartmentManager iDepartmentManager, IEmployeeManager iEmployeeManager, IRegionManager iRegionManager, ITerritoryManager iTerritoryManager, IProductManager iProductManager, IAccountsManager iAccountsManager, IReportManager iReportManager)
 {
     _iBranchManager     = iBranchManager;
     _iClientManager     = iClientManager;
     _iDepartmentManager = iDepartmentManager;
     _iEmployeeManager   = iEmployeeManager;
     _iRegionManager     = iRegionManager;
     _iTerritoryManager  = iTerritoryManager;
     _iProductManager    = iProductManager;
     _iAccountsManager   = iAccountsManager;
     _iReportManager     = iReportManager;
 }
Пример #20
0
 public HomeController(IBranchManager iBranchManager, IClientManager iClientManager, IOrderManager iOrderManager, IEmployeeManager iEmployeeManager, IInventoryManager iInventoryManager, ICommonManager iCommonManager, IAccountsManager iAccountsManager, IReportManager iReportManager, IDeliveryManager iDeliveryManager)
 {
     _iBranchManager    = iBranchManager;
     _iClientManager    = iClientManager;
     _iOrderManager     = iOrderManager;
     _iEmployeeManager  = iEmployeeManager;
     _iCommonManager    = iCommonManager;
     _iInventoryManager = iInventoryManager;
     _iAccountsManager  = iAccountsManager;
     _iReportManager    = iReportManager;
     _iDeliveryManager  = iDeliveryManager;
 }
Пример #21
0
        public AccountsApiController(IAccountsManager accountsManager, ILoginCredentialsQuery loginCredentialsQuery, IEmployersQuery employersQuery, IAppleDevicesQuery appleDevicesQuery, IMemberSearchAlertsQuery memberSearchAlertsQuery, ILoginAuthenticationCommand loginAuthenticationCommand, ILoginCredentialsCommand loginCredentialsCommand, IAppleDevicesCommand appleDevicesCommand)
        {
            _accountsManager         = accountsManager;
            _loginCredentialsQuery   = loginCredentialsQuery;
            _employersQuery          = employersQuery;
            _appleDevicesQuery       = appleDevicesQuery;
            _memberSearchAlertsQuery = memberSearchAlertsQuery;

            _loginAuthenticationCommand = loginAuthenticationCommand;
            _loginCredentialsCommand    = loginCredentialsCommand;
            _appleDevicesCommand        = appleDevicesCommand;
        }
Пример #22
0
 public HomeController(IBranchManager iBranchManager, IClientManager iClientManager, IOrderManager iOrderManager, IReportManager iReportManager, IEmployeeManager iEmployeeManager, IInventoryManager iInventoryManager, ICommonManager iCommonManager, IRegionManager iRegionManager, ITerritoryManager iTerritoryManager, IAccountsManager iAccountsManager, IDivisionGateway iDivisionGateway)
 {
     _iBranchManager    = iBranchManager;
     _iClientManager    = iClientManager;
     _iOrderManager     = iOrderManager;
     _iReportManager    = iReportManager;
     _iEmployeeManager  = iEmployeeManager;
     _iInventoryManager = iInventoryManager;
     _iCommonManager    = iCommonManager;
     _iRegionManager    = iRegionManager;
     _iTerritoryManager = iTerritoryManager;
     _iAccountsManager  = iAccountsManager;
     _iDivisionGateway  = iDivisionGateway;
 }
Пример #23
0
 public NewOrderController(IPageflowEngine pageflowEngine, IEmployerOrdersCommand employerOrdersCommand, IEmployerOrdersQuery employerOrdersQuery, IProductsQuery productsQuery, ICreditsQuery creditsQuery, ICouponsQuery couponsQuery, IOrdersCommand ordersCommand, IOrdersQuery ordersQuery, IAccountsManager accountsManager, ILoginCredentialsQuery loginCredentialsQuery, ILoginAuthenticationCommand loginAuthenticationCommand, IAuthenticationManager authenticationManager, IIndustriesQuery industriesQuery)
     : base(Routes, pageflowEngine)
 {
     _employerOrdersCommand      = employerOrdersCommand;
     _employerOrdersQuery        = employerOrdersQuery;
     _productsQuery              = productsQuery;
     _creditsQuery               = creditsQuery;
     _couponsQuery               = couponsQuery;
     _ordersCommand              = ordersCommand;
     _ordersQuery                = ordersQuery;
     _accountsManager            = accountsManager;
     _loginCredentialsQuery      = loginCredentialsQuery;
     _loginAuthenticationCommand = loginAuthenticationCommand;
     _authenticationManager      = authenticationManager;
     _industriesQuery            = industriesQuery;
 }
Пример #24
0
 public AccountsManagerViewModel(
     BusyIndicatorViewModel busyIndicatorViewModel,
     IAccountsManager manager,
     IOperationsManager operationsManager,
     IImportManager importsManager)
 {
     _busyIndicator     = busyIndicatorViewModel;
     _manager           = manager;
     _operationsManager = operationsManager;
     _importsManager    = importsManager;
     LoadCommand        = new AsyncCommand(LoadAsync, () => !IsEditing);
     BeginNewCommand    = new AsyncCommand(BeginNew, () => !IsEditing);
     BeginEditCommand   = new AsyncCommand(BeginEdit, () => !IsEditing && CurrentAccount != null);
     DeleteCommand      = new AsyncCommand(Delete, () => !IsEditing && CurrentAccount != null);
     CommitEditCommand  = new AsyncCommand(CommitEdit, () => IsEditing);
     _commands          = new[] { LoadCommand, BeginEditCommand, CommitEditCommand, BeginNewCommand, DeleteCommand };
 }
Пример #25
0
 public HomeController(IVatManager iVatManager, IBranchManager iBranchManager, IClientManager iClientManager, IOrderManager iOrderManager, IReportManager iReportManager, IEmployeeManager iEmployeeManager, ICommonManager iCommonManager, IRegionManager iRegionManager, ITerritoryManager iTerritoryManager, IProductManager iProductManager, IAccountsManager iAccountsManager, IDivisionGateway iDivisionGateway, IDeliveryManager iDeliveryManager, IServiceManager iServiceManager, IDiscountManager iDiscountManager)
 {
     _iVatManager       = iVatManager;
     _iBranchManager    = iBranchManager;
     _iClientManager    = iClientManager;
     _iOrderManager     = iOrderManager;
     _iReportManager    = iReportManager;
     _iEmployeeManager  = iEmployeeManager;
     _iCommonManager    = iCommonManager;
     _iRegionManager    = iRegionManager;
     _iTerritoryManager = iTerritoryManager;
     _iProductManager   = iProductManager;
     _iAccountsManager  = iAccountsManager;
     _iDivisionGateway  = iDivisionGateway;
     _iDeliveryManager  = iDeliveryManager;
     _iServiceManager   = iServiceManager;
     _iDiscountManager  = iDiscountManager;
 }
Пример #26
0
 public OperationHeadController(IVatManager iVatManager, IBranchManager iBranchManager, IClientManager iClientManager, IOrderManager iOrderManager, IReportManager iReportManager, IDepartmentManager iDepartmentManager, IEmployeeManager iEmployeeManager, IInventoryManager iInventoryManager, ICommonManager iCommonManager, IDiscountManager iDiscountManager, IRegionManager iRegionManager, ITerritoryManager iTerritoryManager, IAccountsManager iAccountsManager, IInvoiceManager iInvoiceManager, IDivisionGateway iDivisionGateway, IProductManager iProductManager)
 {
     _iVatManager        = iVatManager;
     _iBranchManager     = iBranchManager;
     _iClientManager     = iClientManager;
     _iOrderManager      = iOrderManager;
     _iReportManager     = iReportManager;
     _iDepartmentManager = iDepartmentManager;
     _iEmployeeManager   = iEmployeeManager;
     _iInventoryManager  = iInventoryManager;
     _iCommonManager     = iCommonManager;
     _iDiscountManager   = iDiscountManager;
     _iRegionManager     = iRegionManager;
     _iTerritoryManager  = iTerritoryManager;
     _iAccountsManager   = iAccountsManager;
     _iInvoiceManager    = iInvoiceManager;
     _iDivisionGateway   = iDivisionGateway;
     _iProductManager    = iProductManager;
 }
Пример #27
0
        public static void InitApp <T>(T rootController,
                                       string clearCipherCacheKey,
                                       NFCNdefReaderSession nfcSession,
                                       out NFCReaderDelegate nfcDelegate,
                                       out IAccountsManager accountsManager)
            where T : UIViewController, IAccountsManagerHost
        {
            Forms.Init();

            if (ServiceContainer.RegisteredServices.Count > 0)
            {
                ServiceContainer.Reset();
            }
            RegisterLocalServices();
            var deviceActionService = ServiceContainer.Resolve <IDeviceActionService>("deviceActionService");
            var messagingService    = ServiceContainer.Resolve <IMessagingService>("messagingService");

            ServiceContainer.Init(deviceActionService.DeviceUserAgent,
                                  clearCipherCacheKey,
                                  Bit.Core.Constants.iOSAllClearCipherCacheKeys);
            InitLogger();
            Bootstrap();

            var appOptions = new AppOptions {
                IosExtension = true
            };
            var app = new App.App(appOptions);

            ThemeManager.SetTheme(app.Resources);

            AppearanceAdjustments();

            nfcDelegate = new Core.NFCReaderDelegate((success, message) =>
                                                     messagingService.Send("gotYubiKeyOTP", message));
            SubscribeBroadcastReceiver(rootController, nfcSession, nfcDelegate);

            accountsManager = ServiceContainer.Resolve <IAccountsManager>("accountsManager");
            accountsManager.Init(() => appOptions, rootController);
        }
 // GET: Accounts/Account
 public ChartOfAccountController(IAccountsManager iAccountsManager, IReportManager iReportManager)
 {
     _iAccountsManager = iAccountsManager;
     _iReportManager   = iReportManager;
 }
Пример #29
0
 public VoucherController(IAccountsManager iAccountsManager)
 {
     _iAccountsManager = iAccountsManager;
 }
Пример #30
0
 public AccountsController(ILogger <AccountsController> logger, IAccountsManager accountsManager)
 {
     _logger          = logger;
     _accountsManager = accountsManager;
 }