Exemple #1
0
        static void Main(string[] args)
        {
            IOrderService orderService = new OrderService();

            var order = orderService.GetOrder(2);
            Console.WriteLine("Order retrieved, ordernumber: " + order.Id);
            Console.ReadKey();
        }
Exemple #2
0
        public void Setup()
        {
            _orderRepository = MockRepository.GenerateStub<IOrderRepository>();

            _orderService = new OrderService(_orderRepository);
        }