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: