public void GetTranslationsFor_Send_CityNodeId_GetListMapObjectTranslationData(int id, int count) { //arrange var repository = new MapObjectTranslationsRepository(_datacontext); var manager = new MapObjectManager(repository); //act var result = manager.GetTranslationsFor(id); //assert Assert.AreEqual(result.Count, count); }
/// <summary> /// Gets the map object translation data for. /// </summary> /// <param name="cityNodeId">The city node identifier.</param> /// <returns>The list of <see cref="MapObjectTranslationData"/></returns> public List<MapObjectTranslationData> GetMapObjectTranslationDataFor(long cityNodeId) { try { using (var manager = new MapObjectManager()) { return manager.GetTranslationsFor(cityNodeId); } } catch (Exception ex) { //TODO ADD tracking return new List<MapObjectTranslationData>(); } }