コード例 #1
0
 public void ShouldReturnNonExportedTypeFromServiceProvider()
 {
     var helper = new ProviderHelper();
     var connectionProvider = new StubConnectionAndServiceProvider();
     var actual = helper.GetCustomProvider<IQueryPager>(connectionProvider);
     Assert.IsInstanceOf(typeof(IQueryPager), actual);
 }
コード例 #2
0
 public void ShouldRequestNonExportedTypeFromServiceProvider()
 {
     var helper = new ProviderHelper();
     var connectionProvider = new StubConnectionAndServiceProvider();
     var actual = helper.GetCustomProvider<IQueryPager>(connectionProvider);
     Assert.AreEqual(typeof(IQueryPager), connectionProvider.RequestedServiceType);
 }
コード例 #3
0
 public void ShouldNotRequestExportableTypeFromServiceProvider()
 {
     var helper = new ProviderHelper();
     var connectionProvider = new StubConnectionAndServiceProvider();
     var actual = helper.GetCustomProvider<ITestInterface>(connectionProvider);
     Assert.IsNull(connectionProvider.RequestedServiceType);
 }
コード例 #4
0
        public void ShouldReturnNonExportedTypeFromServiceProvider()
        {
            var helper             = new ProviderHelper();
            var connectionProvider = new StubConnectionAndServiceProvider();
            var actual             = helper.GetCustomProvider <IQueryPager>(connectionProvider);

            Assert.IsInstanceOf(typeof(IQueryPager), actual);
        }
コード例 #5
0
        public void ShouldRequestNonExportedTypeFromServiceProvider()
        {
            var helper             = new ProviderHelper();
            var connectionProvider = new StubConnectionAndServiceProvider();
            var actual             = helper.GetCustomProvider <IQueryPager>(connectionProvider);

            Assert.AreEqual(typeof(IQueryPager), connectionProvider.RequestedServiceType);
        }
コード例 #6
0
        public void ShouldNotRequestExportableTypeFromServiceProvider()
        {
            var helper             = new ProviderHelper();
            var connectionProvider = new StubConnectionAndServiceProvider();
            var actual             = helper.GetCustomProvider <ITestInterface>(connectionProvider);

            Assert.IsNull(connectionProvider.RequestedServiceType);
        }