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); }
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); }