Пример #1
0
 public void ShouldResolveCustomInserter()
 {
     var helper = new ProviderHelper();
     var connectionProvider = new StubConnectionProvider();
     var actual = helper.GetCustomProvider<ICustomInserter>(connectionProvider);
     Assert.IsInstanceOf(typeof(StubCustomInserter), actual);
 }
Пример #2
0
        public void ShouldResolveCustomInserter()
        {
            var helper             = new ProviderHelper();
            var connectionProvider = new StubConnectionProvider();
            var actual             = helper.GetCustomProvider <ICustomInserter>(connectionProvider);

            Assert.IsInstanceOf(typeof(StubCustomInserter), actual);
        }
Пример #3
0
 public override bool TryGetProvider(string connectionString, out IConnectionProvider provider, out Exception exception)
 {
     if (connectionString.Equals("Test"))
     {
         provider  = new StubConnectionProvider();
         exception = null;
         return(true);
     }
     provider  = null;
     exception = null;
     return(false);
 }
 public override bool TryGetProvider(string connectionString, out IConnectionProvider provider, out Exception exception)
 {
     if (connectionString.Equals("Test"))
     {
         provider = new StubConnectionProvider();
         exception = null;
         return true;
     }
     provider = null;
     exception = null;
     return false;
 }