Exemple #1
0
        public static IEnumerable <object[]> ResolvesSuccessfullyTestCases()
        {
            DependencyResolverAdapter instance = CreateAdapterStub();

            yield return(DelegateTestCase.Create(instance.GetService, typeof(TestService)).WithoutName());

            yield return(DelegateTestCase.Create(instance.GetRequiredService, typeof(TestService)).WithoutName());

            yield return(DelegateTestCase.Create(instance.GetService <TestService>).WithoutName());

            yield return(DelegateTestCase.Create(instance.GetRequiredService <TestService>).WithoutName());
        }
Exemple #2
0
 public DependencyResolverAdapterTests()
 {
     _sut         = CreateAdapterStub();
     _adapterStub = Mock.Get(_sut);
 }