public void genrateMockStudentList() { //Instantiate the class clsPerson newStudent = new clsPerson(); //fill in information in the properties newStudent.lastname = "snow"; newStudent.firstname = "John"; newStudent.age = 30; newStudent.eyeColor = "BLACK"; newStudent.height = 1.75m; newStudent.idCard = "100-99-0-000"; //we can also assign objects to other object's properties Guid uniqueIdentifier = new Guid(); newStudent.uniqueId = uniqueIdentifier; newStudent.hobbies = new List <string>(); // or call ,ethods/functions newStudent.taketest("programming in C#"); }
public void generateMocksStudentList() { // INSTANTIATE THE CLASS clsPerson newStudent = new clsPerson(); // Fill in information in the properties newStudent.lastName = "snow"; newStudent.firstName = "Jon"; newStudent.age = 30; newStudent.eyeColor = "Black"; newStudent.height = 1.75m; newStudent.idCard = "100-99-0-000"; //WE CAN ALSO ASSIGN OBJECTS TO OTHER OBJECT`S PROPERTIES Guid uniqueIdentifier = new Guid(); newStudent.UniqueId = uniqueIdentifier; newStudent.hobbies = new List <string>(); // OR CALL METHODS/FUNCTIONS newStudent.takeTest("Programming in C#"); }
// CALCULATES SCORE PER INDIVIDUAL STUDENT public decimal calculteStudentScore(clsPerson student) { return(100.0M); }