static List <int> AddSomeManufacturers() { List <int> manufaturersIDs = new List <int>(); manufaturersIDs.Add(Manufacturer.AddManufacturer("Glada Gemet", "www.gladagemet.se")); manufaturersIDs.Add(Manufacturer.AddManufacturer("Happy Hålslag", "www.happyhalslag.se")); manufaturersIDs.Add(Manufacturer.AddManufacturer("Smajling Stift", "www.smajlingstift.se")); return(manufaturersIDs); }
static void TestProductFlow() { Category c = new Category(-1, "Test", "Testkategori", -1); int cid = Category.AddCategory(c); Manufacturer m = new Manufacturer(-1, "Testtillverkare", ""); int mid = Manufacturer.AddManufacturer(m); Product pr = new Product(-1, "Testprodukt", "Test", "Längre test", -1, 37.5f, 2, 100, "", "", "", 1, mid, "8", cid); int pid = Product.AddProduct(pr); Console.WriteLine($"Product ID {pid} added."); }