Ejemplo n.º 1
0
 private static List<Product> CreateProduct()
 {
     var list = new List<Product>();
     var product = new Product
                  {
                      Name = "Produkt test 2",
                      Ean = "11987654321",
                      Height = 45,
                      Length = 20,
                      Weight = 1,
                      Width = 30
                  };
     list.Add(product);
     return list;
 }
Ejemplo n.º 2
0
 public SocetProducts(Product product, WarehouseSocet warehouseSocet)
 {
     WarehouseSocetId = new MongoDBRef("WarehouseSocet", warehouseSocet.Id);
     ProductId = new MongoDBRef("Product", product.Id);
     this.TimeStamp = DateTime.Now;
 }