예제 #1
0
파일: Service.cs 프로젝트: Dloz/EpamTasks
 public void RegisterBillingSystem(IBillingSystem billingSystem)
 {
     if (billingSystem != null)
     {
         this.BillingSystem = billingSystem;
     }
 }
예제 #2
0
        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);
        }
예제 #3
0
        public AccountingNotifier(IBillingSystem billingSystem)
        {
            if (billingSystem == null)
            {
                throw new ArgumentNullException(nameof(billingSystem));
            }

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



            AddTemplatePhoneNumbers();
        }
예제 #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;
        }
예제 #6
0
 public AccountingNotifier(IBillingSystem billingSystem)
 {
     this.billingSystem = billingSystem;
 }
예제 #7
0
 public void ConnectToBillingSystem(IBillingSystem billingSystem)
 {
     billingSystem.OnContract += this.NewContract;
 }
예제 #8
0
파일: Operator.cs 프로젝트: Dloz/EpamTasks
 public Operator(ICollection <IStation> stations, IBillingSystem billingSystem, IReporterService reporter) : this()
 {
     _reporter     = reporter;
     Stations      = stations;
     BillingSystem = billingSystem;
 }
예제 #9
0
 public void ConnectToBillingSystem(IBillingSystem billingSystem)
 {
     billingSystem.OnContract += this.NewContract;
 }
예제 #10
0
 public BillingViewModel(IBillingSystem billingSystem)
 {
     this.billingSystem = billingSystem;
 }
 public BillingObserver(IBillingSystem billingSystem, IBillingTriggerer billingTriggerer)
 {
     this.billingSystem    = billingSystem;
     this.billingTriggerer = billingTriggerer;
 }