public void AddDefaultConsulting() { Activity A = new Activity("Consalting_TMP", new DateTime(2000, 1, 1), new DateTime(2019, 10, 22)); Consulting S = new Consulting(A); this.Add(S); }
public override Object DeepCopy() { Activity tmp_A = new Activity(this.Name, Start, End); Consulting tmp_C = new Consulting(tmp_A, this.is_international, this.exchange); return(tmp_C); }
public void AddDefault() { Activity[] A = new Activity[2] { new Activity("Work_1", new DateTime(2000, 1, 1), new DateTime(2019, 10, 22)), new Activity("Work_2", new DateTime(2000, 1, 1), new DateTime(2019, 10, 22)) }; Consulting[] S = new Consulting[2] { new Consulting(A[0], true), new Consulting(A[1], false, 944.78) }; Project[] P = new Project[2] { new Project(A[0], "Project_1", 3), new Project(A[1], "Project_2", 1) }; foreach (Activity tmp in A) { this.Add(tmp); } foreach (Activity tmp in S) { this.Add(tmp); } foreach (Activity tmp in P) { this.Add(tmp); } amountOfWork += 2; }