Exemplo n.º 1
0
 public void AddShelfToStore(Store store, Shelf shelf)
 {
     store.Shelves.Add(shelf);
     _addShelfEvent.Publish(new AddShelfEvent {
         Shelf = shelf, Store = store
     });
 }
Exemplo n.º 2
0
 public void RemovePartFromShelf(Shelf shelf, Part part)
 {
     shelf.Parts.Remove(part);
     _removePartFromShelfEvent.Publish(new RemovePartFromShelfEvent {
         Part = part, Shelf = shelf
     });
 }
Exemplo n.º 3
0
 public void AddPartToShelf(Shelf shelf, Part part)
 {
     shelf.Parts.Add(part);
     _addPartEvent.Publish(new AddPartEvent {
         Part = part, Shelf = shelf
     });
 }