public static void A_CreateSeveralInstancesOfClass() { var traineeBerta = new TraineeReferenceType("Berta", 15); var traineeBob = new TraineeReferenceType("Bob", 23); traineeBerta .GetType() .Should() .Be(traineeBob.GetType(), "because they both are objects of one type"); }
public static void E_ClassExtendedByThirdpartyMethod() { var trainee = new TraineeReferenceType("Berta", 43); trainee.ChangeAssesment(31); }
public static void ChangeAssesment(this TraineeReferenceType trainee, int assesment) => trainee.Assessment = assesment;