public void GetByID_RetrieveItem_ItemRetrieved()
        {
            // arrange
            InMemoryWarehouseRepository inmemorywarehouserepository = new InMemoryWarehouseRepository();
            inmemorywarehouserepository.Add(new Warehouse(1, 10, 10));

            // act
            Warehouse warehouse = inmemorywarehouserepository.GetById(1);

            // assert
            Assert.AreEqual(warehouse.Warehouseid, 1);
        }
        public void Delete_DeleteItem_ItemRemoved()
        {
            // arrange
            InMemoryWarehouseRepository inmemorywarehouserepository = new InMemoryWarehouseRepository();
            inmemorywarehouserepository.Add(new Warehouse(1, 10, 10));

            // act
            inmemorywarehouserepository.Delete(new Warehouse(1, 10, 10));

            // assert
            Assert.IsNull(inmemorywarehouserepository.GetById(1));
        }
        public void Update_ItemCoord_UpdatedCoord()
        {
            // arrange
            InMemoryWarehouseRepository inmemorywarehouserepository = new InMemoryWarehouseRepository();
            inmemorywarehouserepository.Add(new Warehouse(1, 10, 10));
            inmemorywarehouserepository.Add(new Warehouse(2, 15, 20));

            // act
            inmemorywarehouserepository.Update(new Warehouse(1, 15, 10));

            // assert
            Assert.AreEqual(inmemorywarehouserepository.GetById(1).X, 15);
        }