예제 #1
0
 private void AddNewOrder(OrderRepository orderRepository)
 {
     var order = orderRepository.New();
     order.Accounting = _rand.Next()%2 == 0 ? new Accounting() : null;
     order.Created = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day - _rand.Next(7));
     order.Vat = Vats[_rand.Next(Vats.Count)];
     for (int i = 0; i < _rand.Next(3, 20); i++) AddNewOrderItem(order);
     orderRepository.Orders.Add(order);
 }
예제 #2
0
파일: ReportForm.cs 프로젝트: xMonkIT/AIS
 public ReportForm(OrderRepository rep)
 {
     InitializeComponent();
     _reportBuilder = new ReportBuilder(rep);
 }
예제 #3
0
 public ReportBuilder(OrderRepository orderRepository)
 {
     _orderRepository = orderRepository;
 }