public void AddCandidateTest() { ICandidate candidate = new Candidates() // Initialize Test Parameters { PK = Guid.NewGuid().ToString(), CV_Path = "", DateOfBirth = new DateTime(1989, 12, 20), Email = "*****@*****.**", Expected_Salary = 25000, Location = "TelAviv", Military_Unit = "8200", Name = "Niv" }; AddCandidate(candidate); CandidatesManagment temp = candidatesManager as CandidatesManagment; if (temp != null) { Assert.IsTrue(temp.Entity.Candidates.Any(candi => candi.Name.Equals(candidate.Name))); } }
/// <summary> /// Create a new Candidates object. /// </summary> /// <param name="pK">Initial value of the PK property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="isDeleted">Initial value of the IsDeleted property.</param> public static Candidates CreateCandidates(global::System.String pK, global::System.String name, global::System.Int32 isDeleted) { Candidates candidates = new Candidates(); candidates.PK = pK; candidates.Name = name; candidates.IsDeleted = isDeleted; return candidates; }
/// <summary> /// Deprecated Method for adding a new object to the Candidates EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToCandidates(Candidates candidates) { base.AddObject("Candidates", candidates); }