public void Given_QA_Advisors_Ensure_That_HealthAndSafety_Are_At_Back_Of_List() { // Given var target = new QaAdvisorController(_dependencyFactory.Object); // When var result = target.RetrieveListOfQaAdvisors(); // Then Assert.That(result[2].Forename, Is.EqualTo(_qaAdvisorList[1].Forename)); }
public void Given_QA_Advisors_Ensure_HealthAndSafety_In_List_With_Correct_Values_Assigned() { // Given var target = new QaAdvisorController(_dependencyFactory.Object); // When var result = target.RetrieveListOfQaAdvisors(); // Then Assert.That(result[2].Forename, Is.EqualTo("H&S")); Assert.That(result[2].Id, Is.EqualTo(Guid.Parse("3A204FB3-1956-4EFC-BE34-89F7897570DB"))); Assert.That(result[2].Surname, Is.EqualTo("Reports")); Assert.That(result[2].Fullname , Is.EqualTo("H&S Reports")); Assert.That(result[2].Initials , Is.EqualTo("H&S Reports")); Assert.That(result[2].Email , Is.EqualTo("H&[email protected]")); }