protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();

            RegisterGlobalFilters(GlobalFilters.Filters);
            RegisterRoutes(RouteTable.Routes);

            var blueTShirt = new ProductModel()
            {
                ProductId = BLUE_TSHIRT_ID,
                Title = "The awesomely fantastic Pusher t-shirt. In Blue!",
                Description = "Super-cool Pusher t-shirt. Increases speed, durability, well-being and developer skills.",
                StockLevel = 10,
                Images = new ProductImage[] {
                    new ProductImage()
                    {
                        ImageId = "Front",
                        ImageUrl = "../../Content/pusher_tee.jpg",
                        ImageAltText = "Front of Pusher blue t-shirt"
                    },
                    new ProductImage()
                    {
                        ImageId = "Back",
                        ImageUrl = "../../Content/pusher_tee_back_small.jpg",
                        ImageAltText = "Back of Pusher blue t-shirt"
                    }
                }
            };
            ProductRepository.AddProduct(blueTShirt);
        }
 public StockUpdatedEvent(ProductModel model, string socketId)
 {
     this.Title = model.Title;
     this.Description = model.Description;
     this.Images = model.Images;
     this.ProductId = model.ProductId;
     this.StockLevel = model.StockLevel;
     this.SocketId = socketId;
 }
 public void AddProduct(ProductModel product)
 {
     _products.Add(product.ProductId, product);
 }