public void VendorConstructor()
 {
     vendor=new Vendor();
     Assert.AreEqual(vendor.Name,"", "Name is not an empty string.");
     Assert.AreEqual(vendor.PartCount,0, "PartCount is not zero.");
 }
 public Invoice()
 {
     charges=new ChargesArray();
     number="";
     vendor=null;
 }
 public void VendorSetUp()
 {
     vendor=new Vendor();
 }
 public void PurchaseOrderSetUp()
 {
     po=new PurchaseOrder();
     vendor=new Vendor();
     vendor.Name="West Marine";
     po.Vendor=vendor;
 }
 public void AddInvoiceFromDifferentVendor()
 {
     Vendor vendor1=new Vendor();
     vendor1.Name="ABC Co.";
     po.Vendor=vendor1;
     Invoice invoice=new Invoice();
     invoice.Number="123456";
     Vendor vendor2=new Vendor();
     vendor2.Name="XYZ Inc.";
     invoice.Vendor=vendor2;
     po.Invoice=invoice;
 }
 public void InvoiceVendor()
 {
     Vendor vendor=new Vendor();
     vendor.Name="Nantucket Parts";
     invoice.Vendor=vendor;
     Assert.AreEqual(invoice.Vendor.Name,vendor.Name, "Vendor name not set.");
 }