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; }