/* * Author: Greg Turner * Purpose: Test for adding a new Orderz to the Orderz table of the test database */ public void AddNewOrderz() { /* Send the new _orderz to the AddNewOrderz method and capture the return * in the variable named result */ var result = _orderManager.AddNewOrderz(_orderz); // Assert that the returned OrderId captured within return will not be 0 Assert.True(result != 0); }
public void AddProductToOrder() { int newOrderzId = _orderManager.AddNewOrderz(_orderz); int newProductId = _productManager.Add(_product); int result = _orderProductManager.AddProductToOrder(newProductId, newOrderzId); Assert.True(result != 0); }