public static void Setup(int testItems) { SetTestRepo(); for(int i=0;i<testItems;i++){ Customer item=new Customer(); _testRepo._items.Add(item); } }
public void Insert(string CustomerID,string CompanyName,string ContactName,string ContactTitle,string Address,string City,string Region,string PostalCode,string Country,string Phone,string Fax) { Customer item = new Customer(); item.CustomerID = CustomerID; item.CompanyName = CompanyName; item.ContactName = ContactName; item.ContactTitle = ContactTitle; item.Address = Address; item.City = City; item.Region = Region; item.PostalCode = PostalCode; item.Country = Country; item.Phone = Phone; item.Fax = Fax; item.Save(UserName); }
public static void Setup(Customer item) { SetTestRepo(); _testRepo._items.Add(item); }