public void SettingEnrollmentFor_WithAnEntity_ShouldChangeToSepcializedSecretary() { var school = new LocalSchool("Test", @"C:\Test"); school.Specializations.Add<TestEntity>(FileType.File, null); var sut = new Enrollment { Secretary = new Secretary(), FileType = FileType.File, School = school }; sut.For<TestEntity>(); var secretary = sut.Secretary as Secretary<TestEntity>; Assert.NotNull(secretary); Assert.Equal(FileType.File, sut.FileType); }