예제 #1
0
 public ProductManager(IProductWriter productWriter, IProductReader productReader, IProductCodeProvider productCodeProvider)
 {
     this.ProductWriter       = productWriter;
     this.ProductReader       = productReader;
     this.ProductCodeProvider = productCodeProvider;
 }
예제 #2
0
 public void GetNextProductCode(IProductCodeProvider provider)
 {
     this._productCode = provider.GenerateNew();
 }