public static void Setup(int testItems) {
     SetTestRepo();
     for(int i=0;i<testItems;i++){
         Employee item=new Employee();
         _testRepo._items.Add(item);
     }
 }
Exemplo n.º 2
0
        public void Insert(string LastName,string FirstName,string Title,string TitleOfCourtesy,DateTime? BirthDate,DateTime? HireDate,string Address,string City,string Region,string PostalCode,string Country,string HomePhone,string Extension,byte[] Photo,string Notes,int? ReportsTo,string PhotoPath)
        {
            Employee item = new Employee();

            item.LastName = LastName;

            item.FirstName = FirstName;

            item.Title = Title;

            item.TitleOfCourtesy = TitleOfCourtesy;

            item.BirthDate = BirthDate;

            item.HireDate = HireDate;

            item.Address = Address;

            item.City = City;

            item.Region = Region;

            item.PostalCode = PostalCode;

            item.Country = Country;

            item.HomePhone = HomePhone;

            item.Extension = Extension;

            item.Photo = Photo;

            item.Notes = Notes;

            item.ReportsTo = ReportsTo;

            item.PhotoPath = PhotoPath;

            item.Save(UserName);
        }
 public static void Setup(Employee item) {
     SetTestRepo();
     _testRepo._items.Add(item);
 }