using System.Collections.Generic; namespace TINK.Model.Bikes { public interface IBikeDictionary : IReadOnlyCollection { /// /// Gets a bike by its id. /// /// /// T GetById(string id); /// /// Deteermines whether a bike by given key exists. /// /// Key to check. /// True if bike exists. bool ContainsKey(string id); } public interface IBikeDictionaryMutable : IBikeDictionary { /// /// Removes a bike by its id. /// /// Id of bike to be removed. void RemoveById(string id); /// /// Adds a new element to dictinary. /// /// New element to add. void Add(T newElement); } }