public void UpdateCatalog_Transliteration()
        {
            var catalog = controller.GetCatalog(testCatalogId).Data as Catalog;

            catalog.Name = "Апдейт";

            controller.UpdateCatalog(testCatalogId, catalog);

            Assert.AreEqual(Extensions.Transliterate(catalog.Name), ((Catalog)_catalogs.Get(testCatalogId).Data).TransliteratedName);
        }
Пример #2
0
 public JSend GetCatalog(int id)
 {
     return(catalogs.Get(id));
 }