public SettingsControlViewModel(IBillingManager bill)
 {
     BuyServiceCommand = new RelayCommand(args =>
     {
         OnClose();
         bill.NavigateToBuyServiceWizard();
     });
 }
 public ExpiryPopupViewModel(IBillingManager billing, DateTime time)
 {
     Time            = time;
     _timer.Elapsed += _timer_Tick;
     BuyCommand      = new RelayCommand(args =>
     {
         Close();
         billing.NavigateToBuyServiceWizard();
     });
 }
Example #3
0
 public ServiceMonitor(PanaceaServices core, IBillingManager billing)
 {
     _core    = core;
     _billing = billing;
     _timer   = new Timer()
     {
         Interval = 10000
     };
     _timer.Elapsed += _timer_Elapsed;
 }
Example #4
0
 public SubscriptionController(SubscriptionPackageRepository packages, SubscriptionPlanRepository plans,
                               CompanyRepository companies, IBillingManager billingManager,
                               ILoggerFactory logger)
 {
     this.packages       = packages;
     this.plans          = plans;
     this.companies      = companies;
     this.billingManager = billingManager;
     this.logger         = logger.CreateLogger("SubscriptionController");
 }
Example #5
0
 public UpdateBillingData(
     IAwsClientFactory awsClientFactory,
     IRepository <AwsProfile> awsProfileRepository,
     IBillingManager billingManager,
     IClock clock,
     IS3PathParser pathParser
     ) : base(awsProfileRepository, awsClientFactory)
 {
     _awsProfileRepository = awsProfileRepository;
     _billingManager       = billingManager;
     _clock      = clock;
     _pathParser = pathParser;
 }
Example #6
0
 public AuthoriseController(EmployeeRepository employees,
                            EmployeeSessionRepository employeeSessions, UserRepository users,
                            UserSessionRepository userSessions, TokenUtil tokenUtil, ISettings settings,
                            IBillingManager billingManager, ICryptoHelper crypto)
 {
     this.employees        = employees;
     this.employeeSessions = employeeSessions;
     this.users            = users;
     this.userSessions     = userSessions;
     this.tokenUtil        = tokenUtil;
     this.settings         = settings;
     this.billingManager   = billingManager;
     this.crypto           = crypto;
 }
        public UpdateBillingData(
			IAwsClientFactory awsClientFactory,
			IRepository<AwsProfile> awsProfileRepository,
			IBillingManager billingManager,
			IClock clock,
			IS3PathParser pathParser
			)
            : base(awsProfileRepository, awsClientFactory)
        {
            _awsProfileRepository = awsProfileRepository;
            _billingManager = billingManager;
            _clock = clock;
            _pathParser = pathParser;
        }
Example #8
0
 public OrderController(OrderRepository orders, ProductRepository products,
                        IMessagePublisher messagePublisher, Constants constants,
                        IBillingManager billingManager, CompanyRepository companies,
                        IOrderCalculator orderCalculator, IEnvironment environment)
 {
     this.orders           = orders;
     this.products         = products;
     this.messagePublisher = messagePublisher;
     this.constants        = constants;
     this.billingManager   = billingManager;
     this.companies        = companies;
     this.random           = new Random();
     this.orderCalculator  = orderCalculator;
     this.environment      = environment;
 }
 public FacadeOrchestratorBilling(IBillingManager billingManager)
 {
     this._billingManager = billingManager;
 }
 public static bool TryGetBilling(this PanaceaServices core, out IBillingManager manager)
 {
     manager = core.PluginLoader.GetPlugins <IBillingPlugin>().FirstOrDefault()?.GetBillingManager();
     return(manager != null);
 }
Example #11
0
 public PaymentController(IBillingManager billingManager)
 {
     this.billingManager = billingManager;
 }
Example #12
0
 public CompaniesController(CompanyRepository companies, IBillingManager billingManager, ILoggerFactory logger)
 {
     this.companies      = companies;
     this.billingManager = billingManager;
     this.logger         = logger.CreateLogger("CompaniesController");
 }