Ejemplo n.º 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();
        }
Ejemplo n.º 2
0
        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;
        }
Ejemplo n.º 3
0
        //================================================================================
        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>();
        }
Ejemplo n.º 4
0
        public ScrapDetail()
        {
            this.isScrapSubmitRejected = new IsScrapSubmitRejected();

            //this.InventoryOperations = new List<InventoryOperation>();
        }