email = c.User.Email; Candidate c2 = Candidate.Find(c.Id); User u2 = c.User; Assert.IsNotNull(u2); Assert.IsNotNull(c2); Assert.AreEqual(u2.FullName, c.FirstName + ' ' + c.LastName); Assert.AreEqual(u2.Passwd, "pass"); Assert.AreEqual(u2.Email, email); Assert.AreEqual(u2.UserType, UserTypes.Candidate); Assert.AreEqual(c2.FirstName, "first"); Assert.AreEqual(c2.LastName, "last"); Assert.AreEqual(c2.Title, "mr"); Assert.AreEqual(c2.Address1, "address1"); Assert.AreEqual(c2.Address2, "address2"); Assert.AreEqual(c2.Address3, "address3"); Assert.AreEqual(c2.Town, "town"); Assert.AreEqual(c2.PostCode, "postcode"); Assert.AreEqual(c2.Country, "country"); Assert.AreEqual(c2.DaytimePhone, "dayphone"); Assert.AreEqual(c2.EveningPhone, "eveningphone"); Assert.AreEqual(c2.Mobile, "mobile"); Assert.AreEqual(c2.CandidateType, Candidate.Types.Previous); }