public void AddLocker(ILocker locker) { switch (locker.Size) { case Size.Small: SmallLockers.Enqueue((SmallLocker)locker); break; case Size.Medium: MediumLockers.Enqueue((MediumLocker)locker); break; case Size.Large: LargeLockers.Enqueue((LargeLocker)locker); break; case Size.XLarge: XLargeLockers.Enqueue((XLargeLocker)locker); break; } }