Esempio n. 1
0
 public Facade(IUnitStore unitStore, ICustomerStore customerStore, ITenancyStore tenancyStore, IDateService dateService)
 {
     this.unitStore     = unitStore ?? throw new ArgumentNullException(nameof(unitStore));
     this.customerStore = customerStore ?? throw new ArgumentNullException(nameof(customerStore));
     this.tenancyStore  = tenancyStore ?? throw new ArgumentNullException(nameof(tenancyStore));
     this.dateService   = dateService ?? throw new ArgumentNullException(nameof(dateService));
 }
        public CustomersViewModel(GlobalViewModel globalViewModel, ICustomerStore customerStore)
        {
            this.GlobalViewModel = globalViewModel;

            _customerStore = customerStore;
            _customerObserver = new Observer<IEnumerable<Customer>>(null, null, OnNextCustomers);
            _customerStore.Subscribe(_customerObserver);

            this.Customers = new ObservableCollection<CustomerViewModel>();

            this.RefreshCommand = new DelegateCommand(Refresh);
        }
Esempio n. 3
0
 public CustomerService(ICustomerStore customerStore)
 {
     _customerStore = customerStore;
 }
Esempio n. 4
0
 public CustomerController(ICustomerStore customers)
 {
     _customers = customers;
 }
Esempio n. 5
0
 public CustomerController(ICustomerStore custormerStore)
 {
     this.customerStore = custormerStore;
 }
Esempio n. 6
0
 public CreateModel(AppDbContext repository, ICustomerStore customerStoreRepository)
 {
     _repository = repository;
     _customerStoreRepository = customerStoreRepository;
 }
Esempio n. 7
0
 public DeleteModel(AppDbContext appDbContext, ICustomerStore repository)
 {
     _appDbContext = appDbContext;
     _repository   = repository;
 }
Esempio n. 8
0
 public CustomersController(ICustomerStore repository)
 {
     _repository = repository;
 }
Esempio n. 9
0
 public CustomerController(ICustomerStore store)
 {
     this.store = store;
 }
Esempio n. 10
0
 public CustomerManager(ICustomerStore customerStore, ILogger <CustomerManager> logger, IMapper mapper)
 {
     _customerStore = customerStore;
     _logger        = logger;
     _mapper        = mapper;
 }