0
私が使用してデバッグのために偽の認証サービスを登録するにはトリングています:城ウィンザーCastle.MicroKernel.ComponentRegistrationException
container.Register(Component
.For<Services.IFormsAuthenticationService>()
.ImplementedBy<Services.DebugAuthenticationService>());
Services.DebugAuthenticationServiceのimplementes Services.IFormsAuthenticationService
は、しかし、私はこのエラーを取得
:
ユニットテストアダプターが投げられました:タイプがCastle.MicroKernel.ComponentRegistrationException、Castle.MicroKernel、Version = 2.1.0.0、Culture = neutral、 PublicKeyToken = 407dd0808d44fbdc '..
は、私が思う、完全な例外スタックトレース –
を投稿してください、私はすでに別の実装に登録されているインタフェースIFormsAuthenticationService becuaseこれを取得:
ここでは、正しく
Component.For ... ImplementedBy
の使用例を見つけることができます。 登録を解除する方法はありますか?またはそれを変更する? –完全な例外スタックトレース –