public void InitTests() { candidate1 = new Candidate { Id = 1, Approved = true, BirthDate = DateTime.Now, Email = "*****@*****.**", Name = "candidate 1", CPF = "12312312333" }; }
public void Ensure_2_Candidates_Equals_When_Same_Id() { candidate2 = new Candidate { Id = 1, Approved = false, BirthDate = DateTime.Now.AddDays(2), Email = "*****@*****.**", Name = "candidate2", CPF = "12312asdsa312333" }; Assert.AreEqual(candidate1.Id, candidate2.Id); Assert.AreEqual(candidate1, candidate2); }