public void DatabaseExists() { var context = new AwesomeStoreContext(); var order = context.Orders.First(); Assert.IsNotNull(order); }
public void AddLineToOrder() { var context = new AwesomeStoreContext(); var customer = context.Customers.FirstOrDefault(); var order = new Order(customer); var line = order.AddLine(10, 1); context.Orders.Add(order); context.OrderLines.Add(line); context.SaveChanges(); }
public UnitOfWork(AwesomeStoreContext context) { _context = context; }
public CreateOrderCommandRepository(AwesomeStoreContext context) { _context = context; }