static void Main(string[] args) { PawnShop ps = new PawnShop(); Vehicle v = new Vehicle("Vehicle1", "Description1", 10000.5, "Type1", 2014, "Manufacturer1", Vehicle.Condition.Perfectly); Watch w = new Watch("Watch1", "Description2", 5000.4, Watch.Material.Silver, "Manufacturer2", 20); ps.AddInventory(v); ps.AddInventory(w); Employee e = new Employee("Edina", "Kudumovic", 200); Expert ex = new Expert("Rijad", "Memic", 200.5, "Expertise"); ps.AddEmployee(e); ps.AddEmployee(ex); PrintInventory(ps); PrintSearch(ps, "Vehicle1"); }
static void Main(string[] args) { PawnShop ps = new PawnShop(); Cars c = new Cars("BMW X5", "Fast and furious", 100000, "Jeep", 2014, "BMW", Cars.Condition.excellent); Clocks cl = new Clocks("Rolex","Old and good", 1400, "Sweden", Clocks.Period.Modern, Clocks.Material.gold); ps.AddInventory(c); ps.AddInventory(cl); PrintInventory(ps); Employee one = new Employee("Indiana", "Jones", 1000, Employee.Expert.Pawnbroker); Employee two = new Employee("Lara", "Croft", 20000, Employee.Expert.MilitaryAntiques); ps.AddEmployee(one); //ps.AddEmployee(two); PrintEmployees(ps); }
/// <summary> /// Add employees to the list /// </summary> /// <param name="e"></param> public void AddEmployee(Employee e) { employees.Add(e); }