Problem with disabled WiFi and Unknown USB Device (Device Descriptor Request Failed)

TLDR:disable unknown USB device -> disable wifi -> hibernate -> plug off power cable -> turn on laptop –> enable wifi WiFi card: Intel(R) Wireless-AC 9560 160MHz Errors:Error (status): This device cannot start. (Code 10)Error (status): Windows has stopped this device because it has reported problems. (Code 43) When fail all methods that you tryContinue reading “Problem with disabled WiFi and Unknown USB Device (Device Descriptor Request Failed)”

Mock IConfigurate in xUnit

If you want mock IConfiguration use following code: or copy secrets.json configuration file to output directory: projectName\bin\Debug\netcoreapp3.1 and then use following code in ContextFixture: Config json file e.g. secrets.json:

Secret storage in .NET

Enable secret storage:Type “dotnet user-secrets init” into Package Manager Console <UserSecretsId> can be found in .csproj file. Set a secret (Package Manager Console):dotnet user-secrets set “ApiKey” “test123” or to remove it:dotnet user-secrets remove “ApiKey” To check if exists:dotnet user-secrets listorManage secret through GUI -> right click on project -> Manage User Secrets -> it opensContinue reading “Secret storage in .NET”