public SqlShoppingListRepo(ShoppingListDbContext context,
                            GroceryPredictionPool predictionEnginePool, IUserPasswordSalt salt)
 {
     _context              = context;
     _waypointsRepo        = new SqlWaypointsRepo(_context);
     _predictionEnginePool = predictionEnginePool;
     _salt = salt;
 }
        public SqlShoppingListRepoExampleData(ShoppingListDbContext context,
                                              PredictionEnginePool <GroceryData, GroceryItemPrediction> predictionEnginePool,
                                              IUserPasswordSalt salt) : base(context,
                                                                             predictionEnginePool, salt)
        {
            if (context.ShopWaypointsEntities.ToList().Count == 0)
            {
                var userCreateDto = new UserCreateDto("user", "password");
                var userEntity    = ToUserEntity(userCreateDto);

                context.UserEntities.Add(userEntity);

                SaveChanges();

                context.ShopWaypointsEntities.Add(new ShopWaypointsEntity
                {
                    Id   = 0,
                    Name = "big-market",
                    ShoppingListEntities     = new List <ShoppingListEntity>(),
                    ShopWaypointsReadDtoJson = JsonSerializer.Serialize(WaypointsRepoHardcoded.HardcodedWaypoints)
                });

                SaveChanges();