public User CreateUser(Guid id, string name, string email) { var user = new User(id, email, name, _systemClock); _context.Add(user); return(user); }
public Dish CreateDish(Guid id, Guid userId, string name, decimal?score, DateTimeOffset?lastInMenu) { var dish = new Dish(id, userId, name, score, lastInMenu, _systemClock); _context.Add(dish); return(dish); }