Exemplo n.º 1
0
 public static Buyer LoadFromStorage(IBuyerStorage buyerStorage)
 {
     return(new Buyer()
     {
         Id = buyerStorage.Id,
         _paymentMethods = buyerStorage.PaymentMethods
     });
 }
Exemplo n.º 2
0
 public BuyerController(IBuyerStorage storage)
 {
     _storage = storage;
 }
Exemplo n.º 3
0
 public OrdersController(IOrdersStorage storage, IBuyerStorage buyerStorage, IEmployeeStorage employeeStorage)
 {
     _storage         = storage;
     _buyerStorage    = buyerStorage;
     _employeeStorage = employeeStorage;
 }