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; }
public OrderSender(IShippingCostCalculator shippingCostCalculator, IMessageService messageService) { this.shippingCostCalculator = shippingCostCalculator; this.messageService = messageService; }