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