コード例 #1
0
        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();
        }
コード例 #2
0
ファイル: Scrap.cs プロジェクト: hatefi-arman/Modules
        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;
        }