public static void AddLecturer() { Console.ForegroundColor = ConsoleColor.Blue; Lecturer lecturer = new Lecturer(); Console.WriteLine("Enter Lecturer ID (Lenght 4 - ends with F)"); lecturer.StaffID = Console.ReadLine(); Console.WriteLine("Enter Name"); lecturer.Name = Console.ReadLine(); Console.WriteLine("Enter PPS Number (Lenght 7 - ends with N)"); lecturer.Pps = Console.ReadLine(); Console.WriteLine("Enter subject Taught (Less than 20 words)"); lecturer.SubjectTaught = Console.ReadLine(); Console.WriteLine("Enter Salary (more or equal than 1500 and less or equal than 8000)"); lecturer.Salary = decimal.Parse(Console.ReadLine()); Console.WriteLine("Enter address:"); lecturer.Address = Console.ReadLine(); Console.WriteLine("Enter Phone Number"); lecturer.Phone = Console.ReadLine(); Console.WriteLine("Enter Email ( eg. [email protected] )"); lecturer.Email = Console.ReadLine(); lecturers.Add(lecturer); }
public void CheckWithThirdLevelLecturerString() { //Arrange string expected = "Third Level Lecturer"; decimal salary = 6500m; //Act Lecturer lecturer = new Lecturer(); lecturer.Salary = salary; //Assert Assert.AreEqual(expected, lecturer.CheckLevel(), false); }