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