49 instantiations of FakeUserHz
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (49)
Linux\AcceptanceTest.cs (4)
112.AddSingleton<IUserHz>(new FakeUserHz(100)) 161.AddSingleton<IUserHz>(new FakeUserHz(100)) 230.AddSingleton<IUserHz>(new FakeUserHz(100)) 313.AddSingleton<IUserHz>(new FakeUserHz(100))
Linux\LinuxUtilizationParserCgroupV1Tests.cs (17)
28var parser = new LinuxUtilizationParserCgroupV1(new HardcodedValueFileSystem(line), new FakeUserHz(100)); 43var parser = new LinuxUtilizationParserCgroupV1(new FileNamesOnlyFileSystem(TestResources.TestFilesLocation), new FakeUserHz(100)); 55var parser = new LinuxUtilizationParserCgroupV1(fs, new FakeUserHz(100)); 85var p = new LinuxUtilizationParserCgroupV1(f, new FakeUserHz(100)); 112var p = new LinuxUtilizationParserCgroupV1(f, new FakeUserHz(100)); 131var p = new LinuxUtilizationParserCgroupV1(f, new FakeUserHz(100)); 157var p = new LinuxUtilizationParserCgroupV1(f, new FakeUserHz(100)); 177var p = new LinuxUtilizationParserCgroupV1(f, new FakeUserHz(100)); 204var p = new LinuxUtilizationParserCgroupV1(f, new FakeUserHz(100)); 231var p = new LinuxUtilizationParserCgroupV1(f, new FakeUserHz(100)); 252var p = new LinuxUtilizationParserCgroupV1(f, new FakeUserHz(100)); 280var p = new LinuxUtilizationParserCgroupV1(f, new FakeUserHz(100)); 295var p = new LinuxUtilizationParserCgroupV1(f, new FakeUserHz(100)); 310var p = new LinuxUtilizationParserCgroupV1(f, new FakeUserHz(100)); 330var p = new LinuxUtilizationParserCgroupV1(f, new FakeUserHz(100)); 347var p = new LinuxUtilizationParserCgroupV1(f, new FakeUserHz(100)); 383var p = new LinuxUtilizationParserCgroupV1(fs.Object, new FakeUserHz(100));
Linux\LinuxUtilizationParserCgroupV2Tests.cs (25)
31var parser = new LinuxUtilizationParserCgroupV2(new HardcodedValueFileSystem(line), new FakeUserHz(100)); 46var parser = new LinuxUtilizationParserCgroupV2(new FileNamesOnlyFileSystem(TestResources.TestFilesLocation), new FakeUserHz(100)); 58var parser = new LinuxUtilizationParserCgroupV2(fs, new FakeUserHz(100)); 89var p = new LinuxUtilizationParserCgroupV2(f, new FakeUserHz(100)); 114var p = new LinuxUtilizationParserCgroupV2(f, new FakeUserHz(100)); 131var p = new LinuxUtilizationParserCgroupV2(f, new FakeUserHz(100)); 148var p = new LinuxUtilizationParserCgroupV2(f, new FakeUserHz(100)); 163var p = new LinuxUtilizationParserCgroupV2(f, new FakeUserHz(100)); 178var p = new LinuxUtilizationParserCgroupV2(f, new FakeUserHz(100)); 196var p = new LinuxUtilizationParserCgroupV2(f, new FakeUserHz(100)); 221var p = new LinuxUtilizationParserCgroupV2(f, new FakeUserHz(100)); 239var p = new LinuxUtilizationParserCgroupV2(f, new FakeUserHz(100)); 265var p = new LinuxUtilizationParserCgroupV2(f, new FakeUserHz(100)); 280var p = new LinuxUtilizationParserCgroupV2(f, new FakeUserHz(100)); 306var p = new LinuxUtilizationParserCgroupV2(f, new FakeUserHz(100)); 321var p = new LinuxUtilizationParserCgroupV2(f, new FakeUserHz(100)); 346var p = new LinuxUtilizationParserCgroupV2(f, new FakeUserHz(100)); 360var p = new LinuxUtilizationParserCgroupV2(f, new FakeUserHz(100)); 375var p = new LinuxUtilizationParserCgroupV2(f, new FakeUserHz(100)); 395var p = new LinuxUtilizationParserCgroupV2(f, new FakeUserHz(100)); 412var p = new LinuxUtilizationParserCgroupV2(f, new FakeUserHz(100)); 429var p = new LinuxUtilizationParserCgroupV2(f, new FakeUserHz(100)); 447var p = new LinuxUtilizationParserCgroupV2(f, new FakeUserHz(100)); 463var p = new LinuxUtilizationParserCgroupV2(f, new FakeUserHz(100)); 498var p = new LinuxUtilizationParserCgroupV2(fs.Object, new FakeUserHz(100));
Linux\LinuxUtilizationProviderTests.cs (3)
51var parser = new LinuxUtilizationParserCgroupV1(fileSystem: fileSystem, new FakeUserHz(100)); 120var parser = new LinuxUtilizationParserCgroupV2(fileSystem: fileSystem, new FakeUserHz(100)); 188var parser = new LinuxUtilizationParserCgroupV2(fileSystem: fileSystem, new FakeUserHz(100));