public void SetUp() { _volumeSerial = 1; _environment = Substitute.For <IEnvironment>(); _kernel32 = Substitute.For <IKernel32>(); _kernel32.GetSystemVolumeSerial().Returns(x => _volumeSerial); }
public Win32FormatMessageService(IKernel32 api, IMarshaller marshaller) { this.api = api ?? throw new ArgumentNullException(nameof(api)); this.marshaller = marshaller ?? throw new ArgumentNullException(nameof(marshaller)); }
public MachineIdWrapper(IRegistry registry, IKernel32 kernel32) { _registry = registry; _kernel32 = kernel32; }
public Keyboard(IUser32 user32, IKernel32 kernel32) { _user32 = user32; _kernel32 = kernel32; _keyboardCallback = KeyboardCallback; }
public MachineIdGenerator(IEnvironment environment, IKernel32 kernel32) { _environment = environment; _kernel32 = kernel32; }