public void ExistsTeamTest() { sportStorage.Add(sportA); bool result = sportStorage.Exists(sportA.Name); Assert.IsTrue(result); }
public ICollection <Encounter> GetAllEncounters(string sportName) { if (!sportsStorage.Exists(sportName)) { throw new ServiceException("Sport not found", ErrorType.ENTITY_NOT_FOUND); } return(encountersStorage.GetAll().Where(m => m.Sport.Name.Equals(sportName)).ToList()); }