Beispiel #1
0
 public void RegisterBillingSystem(IBillingSystem billingSystem)
 {
     if (billingSystem != null)
     {
         this.BillingSystem = billingSystem;
     }
 }
        public TestProvider(IStation station, IBillingSystem billingSystem)
        {
            if (station == null) throw new ArgumentNullException(nameof(station));
            if (billingSystem == null) throw new ArgumentNullException(nameof(billingSystem));

            this._station = station;
            this._billingSystem = billingSystem;
            billingSystem.RegisterStation(station);
        }
Beispiel #3
0
        public AccountingNotifier(IBillingSystem billingSystem)
        {
            if (billingSystem == null)
            {
                throw new ArgumentNullException(nameof(billingSystem));
            }

            this.billingSystem = billingSystem;
        }
Beispiel #4
0
        public Provider()
        {
            _station       = new AtsStation();
            _billingSystem = new BillingSystem();
            _contracts     = new List <IContract>();



            AddTemplatePhoneNumbers();
        }
Beispiel #5
0
        public RefundSender(IOrderRepository repository, IBillingSystem billingSystem)
        {
            if (repository == null)
            {
                throw new ArgumentNullException(nameof(repository));
            }
            if (billingSystem == null)
            {
                throw new ArgumentNullException(nameof(billingSystem));
            }

            this.repository    = repository;
            this.billingSystem = billingSystem;
        }
Beispiel #6
0
 public AccountingNotifier(IBillingSystem billingSystem)
 {
     this.billingSystem = billingSystem;
 }
Beispiel #7
0
 public void ConnectToBillingSystem(IBillingSystem billingSystem)
 {
     billingSystem.OnContract += this.NewContract;
 }
Beispiel #8
0
 public Operator(ICollection <IStation> stations, IBillingSystem billingSystem, IReporterService reporter) : this()
 {
     _reporter     = reporter;
     Stations      = stations;
     BillingSystem = billingSystem;
 }
Beispiel #9
0
 public void ConnectToBillingSystem(IBillingSystem billingSystem)
 {
     billingSystem.OnContract += this.NewContract;
 }
Beispiel #10
0
 public BillingViewModel(IBillingSystem billingSystem)
 {
     this.billingSystem = billingSystem;
 }
 public BillingObserver(IBillingSystem billingSystem, IBillingTriggerer billingTriggerer)
 {
     this.billingSystem    = billingSystem;
     this.billingTriggerer = billingTriggerer;
 }