public void AddNewLocalization_CheckIfLocalizationIsAddedToDatabase()
        {
            string name = "TEST";
            string icon = "ICON";

            _context.AddNewLocalization(name, icon);
            var result = _context.GetLocalizations();

            Localization testLocalization = new Localization
            {
                Name = "TEST",
                Icon = "ICON"
            };

            Assert.That(() => result.Where(z => z.Name == name && z.Icon == icon).Count() == 1);

            _context.DeleteLocalization(name);
        }
Exemple #2
0
 public void DeleteLocalization(string name)
 {
     _context.DeleteLocalization(name);
 }