Esempio n. 1
0
 public RegistrationController(ApplicationDbContext db, ILoggerFactory factory, IOptions <Secrets> secrets, IEmailSender esvc, ITotalCalculator calc)
 {
     _db      = db;
     _logger  = factory.CreateLogger("All");
     _gateway = new BraintreeGateway(secrets.Value.paypaltoken);
     _email   = esvc;
     _calc    = calc;
 }
 public AdminController(ApplicationDbContext db, UserManager <ApplicationUser> um, RoleManager <IdentityRole> rm, ILoggerFactory f, IEmailSender esvc, ITotalCalculator calc)
 {
     _db          = db;
     _userManager = um;
     _roleManager = rm;
     _logger      = f.CreateLogger("All");
     _msgSender   = esvc;
     _calc        = calc;
 }
Esempio n. 3
0
 public Receipt(
     [NotNull] IReceiptItemList list,
     [NotNull] ISubTotalCalculator subTotalCalculator,
     [NotNull] ITaxTotalCalulator taxTotalCalulator,
     [NotNull] ITotalCalculator totalCalculator)
 {
     m_List = list;
     m_SubTotalCalculator = subTotalCalculator;
     m_TaxTotalCalulator  = taxTotalCalulator;
     m_TotalCalculator    = totalCalculator;
 }
        public ClearingViewModel(IClearingRepository clearingRepository, ITotalCalculator totalCalculator)
        {
            this.clearingRepository = clearingRepository;
            this.totalCalculator = totalCalculator;

            Buildings = new ObservableCollection<Building>(clearingRepository.GetBuildings());
            DateTimeIntervals = new ObservableCollection<DateTimeInterval>(clearingRepository.GetDateTimeIntervals());
            Clearings = new ObservableCollection<Clearing>(clearingRepository.GetClearings());

            view = new ClearingView(){DataContext = this};
        }
Esempio n. 5
0
 public ShoppingBasket(ITotalCalculator totalCalculator)
 {
     _totalCalculator = totalCalculator;
 }