私は、各テストセットアップでコンテナをセットアップする統合テストを書いています。私は、登録コードを再利用していますが、私はこのエラーを取得するLifestyle.Scopedとの依存関係を登録しようとエラーが表示されます。単体テスト中にどのシンプルインジェクタスコープライフスタイルを使用すべきですか?
私は私の場合には使用すべきである何DefaultScopedLifestyleSetUp : System.InvalidOperationException : To be able to use the Lifestyle.Scoped property, please ensure that the container is configured with a default scoped lifestyle by setting the Container.Options.DefaultScopedLifestyle property with the required scoped lifestyle for your type of application.
?スコープは本当にシングルトンですが、私はwebapiアプリケーションから登録コードを再利用しています。