示例#1
0
		public void CreateOrderTest()
		{
			DALDB db = new DALDB();
			
			string CustomerID = "RATTC";
			int EmployeeID = 1;
			DateTime OrderDate = DateTime.MinValue;
			DateTime RequiredDate = DateTime.MinValue;
			DateTime ShippedDate = DateTime.MinValue;
			int ShipVia = 1;
			float Freight = 1;
			string ShipName = "Rattlesnake Canyon Grocery";
			string ShipAddress = "2817 Milton Dr.";
			string ShipCity = "Albuquerque";
			string ShipRegion = "NM";
			string ShipPostalCode = "87110";
			string ShipCountry = "USA";

			Orders note = new Orders(CustomerID, EmployeeID, OrderDate, 
			RequiredDate, ShippedDate, ShipVia, Freight, ShipName, ShipAddress, 
			ShipCity, ShipRegion, ShipPostalCode, ShipCountry);

			Assert.AreEqual(true, db.CreateOrder(note));
		}