private static BuildingSecurityClient GetBuildingSecurityClient(ITypedAlarmService alarmService = null,
                                                                 ITypedSessionManagement sessionService = null,
                                                                 ITypedSystemInformationService systemInformationService = null,
                                                                 ITypedApplicationPreference applicationPreferenceService = null,
                                                                 IDataSerializerFactory serializationFactory = null)
 {
     return new BuildingSecurityClient(alarmService ?? new Mock<ITypedAlarmService>().Object,
                                       sessionService ?? new Mock<ITypedSessionManagement>().Object,
                                       systemInformationService ?? new Mock<ITypedSystemInformationService>().Object,
                                       applicationPreferenceService ?? new Mock<ITypedApplicationPreference>().Object,
                                       serializationFactory ?? new DataSerializerFactory());
 }
 public CachingApplicationPreferences(ITypedApplicationPreference preferences, ICache cache)
 {
     _preferences = preferences;
     _cache = cache;
 }