Exemple #1
0
 public MainViewModel(ISystemInformationHandler systemInformationHandler)
 {
     if (systemInformationHandler == null)
     {
         throw new ArgumentNullException(nameof(systemInformationHandler));
     }
     _systemInformationHandler = systemInformationHandler;
 }
Exemple #2
0
 public SystemInformation(ISystemInformationHandler systemInformationHandler)
 {
     if (systemInformationHandler == null)
     {
         throw new ArgumentNullException(nameof(systemInformationHandler));
     }
     _systemInformationHandler = systemInformationHandler;
     OSVersion = _systemInformationHandler.OSVersion;
 }