https://github.com/nrslib/itddd/tree/master/Layered_UsingInternal
README.mdには、2つある.jsonファイルのsetupを変更するよう書かれてありますが
asppsetting.Development.jsonにはsetupキーがありません(代わりにSetupNameキーがあります)。
また、ソースコードでは[Dependency:SetupName"]キーを参照しています。
どのモジュールを利用するかの設定はプロダクション用設定の appsettings.json とデバッグ用設定の appsetting.Development.json によって制御できます。
appsettings.json
"Dependency": {
"setup": "InMemoryModuleDependencySetup"
}
asppsetting.Development.json
"Dependency": {
"SetupName": "InMemoryModuleDependencySetup"
}
DependencySetupFactory.cs
var setupName = configuration["Dependency:SetupName"];