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