Exemplo n.º 1
0
 public IObservable<OrderEntity> CreateOrder(int customerId, IScheduler scheduler)
 {
     var order = new OrderEntity { CustomerId = customerId, Id = orderIdCounter++ };
     if (scheduler != null)
     {
         return Observable.Return(order, scheduler);
     }
     return Observable.Return(order);
 }
Exemplo n.º 2
0
 internal Order(OrderEntity entity)
 {
     _backingField = entity;
     _rows = new List<OrderRow>();
 }