public void EmailDepersonilizedTest() { Depersonilize dep = new Depersonilize(); var result = dep.Depersonilized(students); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 17).Email, result.FirstOrDefault(x => x.Id == 1).Email); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 5).Email, result.FirstOrDefault(x => x.Id == 16).Email); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 9).Email, result.FirstOrDefault(x => x.Id == 13).Email); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 21).Email, result.FirstOrDefault(x => x.Id == 27).Email); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 27).Email, result.FirstOrDefault(x => x.Id == 25).Email); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 15).Email, result.FirstOrDefault(x => x.Id == 7).Email); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 22).Email, result.FirstOrDefault(x => x.Id == 22).Email); }
public void LastNameDepersonilizedTest() { Depersonilize dep = new Depersonilize(); var result = dep.Depersonilized(students); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 1).LastName, result.FirstOrDefault(x => x.Id == 6).LastName); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 3).LastName, result.FirstOrDefault(x => x.Id == 11).LastName); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 21).LastName, result.FirstOrDefault(x => x.Id == 21).LastName); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 10).LastName, result.FirstOrDefault(x => x.Id == 19).LastName); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 9).LastName, result.FirstOrDefault(x => x.Id == 14).LastName); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 22).LastName, result.FirstOrDefault(x => x.Id == 24).LastName); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 20).LastName, result.FirstOrDefault(x => x.Id == 9).LastName); }
public void EmailUndepersonilizedTest() { Depersonilize dep = new Depersonilize(); var depersonilized = dep.Depersonilized(students); var undepersonilized = dep.Undepersonilized(depersonilized); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 17).Email, undepersonilized.FirstOrDefault(x => x.Id == 17).Email); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 5).Email, undepersonilized.FirstOrDefault(x => x.Id == 5).Email); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 9).Email, undepersonilized.FirstOrDefault(x => x.Id == 9).Email); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 21).Email, undepersonilized.FirstOrDefault(x => x.Id == 21).Email); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 27).Email, undepersonilized.FirstOrDefault(x => x.Id == 27).Email); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 15).Email, undepersonilized.FirstOrDefault(x => x.Id == 15).Email); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 22).Email, undepersonilized.FirstOrDefault(x => x.Id == 22).Email); }
public void LastNameUndepersonilizedTest() { Depersonilize dep = new Depersonilize(); var depersonilized = dep.Depersonilized(students); var undepersonilized = dep.Undepersonilized(depersonilized); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 1).LastName, undepersonilized.FirstOrDefault(x => x.Id == 1).LastName); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 3).LastName, undepersonilized.FirstOrDefault(x => x.Id == 3).LastName); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 21).LastName, undepersonilized.FirstOrDefault(x => x.Id == 21).LastName); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 10).LastName, undepersonilized.FirstOrDefault(x => x.Id == 10).LastName); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 9).LastName, undepersonilized.FirstOrDefault(x => x.Id == 9).LastName); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 22).LastName, undepersonilized.FirstOrDefault(x => x.Id == 22).LastName); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 20).LastName, undepersonilized.FirstOrDefault(x => x.Id == 20).LastName); }
public void PhoneDepersonilizedTest() { Depersonilize dep = new Depersonilize(); var result = dep.Depersonilized(students); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 8).Phone, result.FirstOrDefault(x => x.Id == 15).Phone); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 4).Phone, result.FirstOrDefault(x => x.Id == 18).Phone); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 18).Phone, result.FirstOrDefault(x => x.Id == 6).Phone); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 14).Phone, result.FirstOrDefault(x => x.Id == 9).Phone); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 22).Phone, result.FirstOrDefault(x => x.Id == 22).Phone); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 23).Phone, result.FirstOrDefault(x => x.Id == 27).Phone); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 26).Phone, result.FirstOrDefault(x => x.Id == 26).Phone); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 21).Phone, result.FirstOrDefault(x => x.Id == 25).Phone); }
public void FatherNameDepersonilizedTest() { Depersonilize dep = new Depersonilize(); var result = dep.Depersonilized(students); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 7).FatherName, result.FirstOrDefault(x => x.Id == 13).FatherName); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 10).FatherName, result.FirstOrDefault(x => x.Id == 1).FatherName); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 6).FatherName, result.FirstOrDefault(x => x.Id == 19).FatherName); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 2).FatherName, result.FirstOrDefault(x => x.Id == 16).FatherName); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 26).FatherName, result.FirstOrDefault(x => x.Id == 24).FatherName); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 25).FatherName, result.FirstOrDefault(x => x.Id == 27).FatherName); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 18).FatherName, result.FirstOrDefault(x => x.Id == 5).FatherName); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 14).FatherName, result.FirstOrDefault(x => x.Id == 8).FatherName); }
public void FirstNameDepersonilizedTest() { Depersonilize dep = new Depersonilize(); var result = dep.Depersonilized(students); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 3).FirstName, result.FirstOrDefault(x => x.Id == 9).FirstName); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 9).FirstName, result.FirstOrDefault(x => x.Id == 13).FirstName); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 6).FirstName, result.FirstOrDefault(x => x.Id == 17).FirstName); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 2).FirstName, result.FirstOrDefault(x => x.Id == 6).FirstName); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 23).FirstName, result.FirstOrDefault(x => x.Id == 21).FirstName); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 24).FirstName, result.FirstOrDefault(x => x.Id == 24).FirstName); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 19).FirstName, result.FirstOrDefault(x => x.Id == 4).FirstName); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 15).FirstName, result.FirstOrDefault(x => x.Id == 7).FirstName); }
public void PhoneUndepersonilizedTest() { Depersonilize dep = new Depersonilize(); var depersonilized = dep.Depersonilized(students); var undepersonilized = dep.Undepersonilized(depersonilized); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 8).Phone, undepersonilized.FirstOrDefault(x => x.Id == 8).Phone); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 4).Phone, undepersonilized.FirstOrDefault(x => x.Id == 4).Phone); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 18).Phone, undepersonilized.FirstOrDefault(x => x.Id == 18).Phone); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 14).Phone, undepersonilized.FirstOrDefault(x => x.Id == 14).Phone); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 22).Phone, undepersonilized.FirstOrDefault(x => x.Id == 22).Phone); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 23).Phone, undepersonilized.FirstOrDefault(x => x.Id == 23).Phone); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 26).Phone, undepersonilized.FirstOrDefault(x => x.Id == 26).Phone); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 21).Phone, undepersonilized.FirstOrDefault(x => x.Id == 21).Phone); }
public void FatherNameUndepersonilizedTest() { Depersonilize dep = new Depersonilize(); var depersonilized = dep.Depersonilized(students); var undepersonilized = dep.Undepersonilized(depersonilized); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 7).FatherName, undepersonilized.FirstOrDefault(x => x.Id == 7).FatherName); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 10).FatherName, undepersonilized.FirstOrDefault(x => x.Id == 10).FatherName); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 6).FatherName, undepersonilized.FirstOrDefault(x => x.Id == 6).FatherName); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 2).FatherName, undepersonilized.FirstOrDefault(x => x.Id == 2).FatherName); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 26).FatherName, undepersonilized.FirstOrDefault(x => x.Id == 26).FatherName); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 25).FatherName, undepersonilized.FirstOrDefault(x => x.Id == 25).FatherName); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 18).FatherName, undepersonilized.FirstOrDefault(x => x.Id == 18).FatherName); Assert.AreEqual(students.FirstOrDefault(x => x.Id == 14).FatherName, undepersonilized.FirstOrDefault(x => x.Id == 14).FatherName); }