Fix DI regression with FactoryCallSite (#57155)
authorMaryam Ariyan <maryam.ariyan@microsoft.com>
Thu, 12 Aug 2021 02:51:33 +0000 (22:51 -0400)
committerGitHub <noreply@github.com>
Thu, 12 Aug 2021 02:51:33 +0000 (02:51 +0000)
commit79836486e75cbcc1c0525306f68a0ef71d0f8cf6
tree4636b94457194d1e0b8e2e3f4ce487fc5e82acfa
parent3ef46e9617cc2132859c6b28fca27c5641d09025
Fix DI regression with FactoryCallSite (#57155)

* Fix DI regression with FactoryCallSite

* - Remove event listener. rely on Debug.Fail
    - Use existing mock types

* Apply PR feedback

* Undo remove unused using

* remove extra blank linke
src/libraries/Microsoft.Extensions.DependencyInjection/src/ServiceProvider.cs
src/libraries/Microsoft.Extensions.DependencyInjection/tests/DI.Tests/ServiceLookup/CallSiteFactoryTest.cs