public void ShouldReturnNonExportedTypeFromServiceProvider() { var helper = new ProviderHelper(); var connectionProvider = new StubConnectionAndServiceProvider(); var actual = helper.GetCustomProvider<IQueryPager>(connectionProvider); Assert.IsInstanceOf(typeof(IQueryPager), actual); }
public void ShouldNotRequestExportableTypeFromServiceProvider() { var helper = new ProviderHelper(); var connectionProvider = new StubConnectionAndServiceProvider(); var actual = helper.GetCustomProvider<ITestInterface>(connectionProvider); Assert.IsNull(connectionProvider.RequestedServiceType); }
public void ShouldRequestNonExportedTypeFromServiceProvider() { var helper = new ProviderHelper(); var connectionProvider = new StubConnectionAndServiceProvider(); var actual = helper.GetCustomProvider<IQueryPager>(connectionProvider); Assert.AreEqual(typeof(IQueryPager), connectionProvider.RequestedServiceType); }
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 void ShouldReturnNonExportedTypeFromServiceProvider() { var helper = new ProviderHelper(); var connectionProvider = new StubConnectionAndServiceProvider(); var actual = helper.GetCustomProvider <IQueryPager>(connectionProvider); Assert.IsInstanceOf(typeof(IQueryPager), actual); }
public void ShouldRequestNonExportedTypeFromServiceProvider() { var helper = new ProviderHelper(); var connectionProvider = new StubConnectionAndServiceProvider(); var actual = helper.GetCustomProvider <IQueryPager>(connectionProvider); Assert.AreEqual(typeof(IQueryPager), connectionProvider.RequestedServiceType); }
public void ShouldNotRequestExportableTypeFromServiceProvider() { var helper = new ProviderHelper(); var connectionProvider = new StubConnectionAndServiceProvider(); var actual = helper.GetCustomProvider <ITestInterface>(connectionProvider); Assert.IsNull(connectionProvider.RequestedServiceType); }
private Operators CreateOperators() { return(ProviderHelper.GetCustomProvider <Operators>(_schemaProvider) ?? new Operators()); }