public void PriceDiscountNotFound()
        {
            var context = new PriceDiscountNotFoundContext {
                PriceDiscount = 0.1M
            };

            _probe.PriceDiscountNotFound(context);
            _announcer.Received(1).Announce(context);
        }
        public void Handle()
        {
            var context = new PriceDiscountNotFoundContext {
                PriceDiscount = 0.1M
            };

            _monitor.Handle(context);
            _metrics.Received(1).Add(context);
        }
        public void Handle()
        {
            var context = new PriceDiscountNotFoundContext {
                PriceDiscount = 0.1M
            };

            _monitor.Handle(context);
            _logger.Received(1).Log(Arg.Any <string>());
        }
        public void Announce()
        {
            var monitor = Substitute.For <IDomainMonitor>();
            var context = new PriceDiscountNotFoundContext {
                PriceDiscount = 0.1M
            };

            _announcer.RegisterMonitor(monitor);
            _announcer.Announce(context);
            monitor.Received(1).Handle(context);
            _announcer.UnregisterMonitor(monitor);
        }
Example #5
0
 public void PriceDiscountNotFound(PriceDiscountNotFoundContext context)
 {
     _announcer.Announce(context);
 }