Esempio n. 1
0
        public OrderSenderTests()
        {
            mockMessageService = new Mock <IMessageService>();
            messageService     = mockMessageService.Object;

            mockShippingCostCalculator = new Mock <IShippingCostCalculator>();
            shippingCostCalculator     = mockShippingCostCalculator.Object;

            orderSender = new OrderSender(shippingCostCalculator, messageService);
        }
 public StandardShippingCostCalculatorLinqToMocksTests()
 {
     calculator = new StandardShippingCostCalculator();
 }
 public StandardShippingCostCalculatorTests()
 {
     calculator = new StandardShippingCostCalculator();
     mockOrder  = new Mock <Order>();
     order      = mockOrder.Object;
 }
Esempio n. 4
0
 public OrderSender(IShippingCostCalculator shippingCostCalculator, IMessageService messageService)
 {
     this.shippingCostCalculator = shippingCostCalculator;
     this.messageService         = messageService;
 }