public void CreateAInvalidOrderPlataformTest() { Order order = new Order(); order.Plataform = "PC"; Validator.Validate(order); }
public Order Update(Order order) { DbEntityEntry entry = context.Entry(order); entry.State = EntityState.Modified; context.SaveChanges(); return order; }
public void CreateAInvalidOrderNameTest() { Order order = new Order(); Validator.Validate(order); }
public Order Save(Order order) { var newOrder = context.Orders.Add(order); context.SaveChanges(); return newOrder; }