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);
        }
예제 #2
0
 public void AddNewLocalization(string name, string icon)
 {
     _context.AddNewLocalization(name, icon);
 }