示例#1
0
        public User CreateUser(Guid id, string name, string email)
        {
            var user = new User(id, email, name, _systemClock);

            _context.Add(user);

            return(user);
        }
示例#2
0
        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);
        }