public ScrapDomainService(IScrapRepository scrapRepository, IRepository<ScrapDetail> scrapDetailRepository) { this.scrapRepository = scrapRepository; this.scrapDetailRepository = scrapDetailRepository; this.isScrapOpen = new IsScrapOpen(); this.isScrapSubmitted = new IsScrapSubmitted(); this.isScrapSubmitRejected = new IsScrapSubmitRejected(); }
public Scrap() { this.isSubmitted = new IsScrapSubmitted(); this.isClosed = new IsScrapClosed(); this.isOpen = new IsScrapOpen(); this.isSubmitRejected = new IsScrapSubmitRejected(); this.isCancelled = new IsScrapCancelled(); this.InventoryOperations = new List<InventoryOperation>(); this.Id = -1; }
//================================================================================ private ScrapDetail( double rob, double price, Currency currency, Good good, GoodUnit unit, Tank tank, Scrap scrap) { //This constructor added to be used for insert into DB. this.ROB = rob; this.Price = price; this.Currency = currency; this.Good = good; this.Unit = unit; this.Tank = tank; this.Scrap = scrap; this.isScrapSubmitRejected = new IsScrapSubmitRejected(); //this.InventoryOperations = new List<InventoryOperation>(); }
public ScrapDetail() { this.isScrapSubmitRejected = new IsScrapSubmitRejected(); //this.InventoryOperations = new List<InventoryOperation>(); }