private IServiceTest SeedData() { using (var context = new CatSharpContext(base.Options)) { context.Cats.Add(new Cat() { Name = "Cat 1" }); context.SaveChanges(); } return(this); }
public void Create(CatCreateDto cat) { _context.Add(Map(cat)); _context.SaveChanges(); }