public void ShouldResolveCustomInserter() { var helper = new ProviderHelper(); var connectionProvider = new StubConnectionProvider(); var actual = helper.GetCustomProvider<ICustomInserter>(connectionProvider); Assert.IsInstanceOf(typeof(StubCustomInserter), actual); }
public void ShouldResolveCustomInserter() { var helper = new ProviderHelper(); var connectionProvider = new StubConnectionProvider(); var actual = helper.GetCustomProvider <ICustomInserter>(connectionProvider); Assert.IsInstanceOf(typeof(StubCustomInserter), actual); }
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; }