Esempio n. 1
0
        public bool AddAisle(int aisleNumber)
        {
            var existingAisle = aisleManager.GetAisleByNumber(aisleNumber);

            if (existingAisle != null)
            {
                return(false);
            }
            aisleManager.AddAisle(aisleNumber);
            return(true);
        }
Esempio n. 2
0
        public ChangeShelfStatus ChangeShelf(int shelfNumber, int aisleNumber)
        {
            var shelf            = shelfManager.GetShelfByNumber(shelfNumber);
            var aisle            = aisleManager.GetAisleByNumber(aisleNumber);
            var shelfManagerMock = shelfManager;



            if (shelf != null)
            {
                return(ChangeShelfStatus.ChangeShelfNumber);
            }



            if (shelf.Aisle.AisleNr != aisleNumber)
            {
                shelfManagerMock.MoveShelf(shelf.ShelfNr, aisle.AisleNr);
            }

            return(ChangeShelfStatus.MoveShelf);
        }