Пример #1
0
        static void Main(string[] args)
        {
            // Low Level Dependencies
            var serviceContext = new ServiceContext();
            var orderRepository = new OrderRepository(new OrderContext());
            var observers = new List<IObserver> { new ConsoleObserver() };

            // Activities
            var activities = ActivityFactory.BuildOrderActivities(serviceContext, orderRepository, observers);

            // Process Sample Order
            var order = new OrderDto { Id = 1, Created = DateTime.Now };
            activities.DoActivity<OrderDto>(order);

            // Pause
            Console.WriteLine("Press any key to exit");
            Console.ReadKey();
        }
 public void Save(OrderDto orderDto)
 {
     _context.Save(orderDto);
 }
 public void Save(OrderDto orderDto)
 {
     return;
 }