private static bool TypeIsCollection(Type t, out Type itemType) { return(ICollectionResolver.TypeIsCollection(t, out ConstructorInfo constructor, out itemType, out bool isImplGenerIList, out bool IsImplIList, out bool isImplGenerICollec, out bool isImplIReadOnlyList)); }
public CollectionService( ICollectionInitializer initializer, ICollectionResolver <TContext> resolver, IDatabaseCollectionProvider <TContext> provider) { _initializer = initializer ?? throw new ArgumentNullException(nameof(initializer)); _resolver = resolver ?? throw new ArgumentNullException(nameof(resolver)); _provider = provider ?? throw new ArgumentNullException(nameof(provider)); }
public ButtonInteraction( ICollectionResolver collectionResolver, IButtonActionHandlerResolver buttonActionHandlerResolver, IAuthService authService) { _collectionResolver = collectionResolver; _buttonActionHandlerResolver = buttonActionHandlerResolver; _authService = authService; }
public TransactionService( ICollectionInitializer initializer, ICollectionResolver <TContext> resolver, IDatabaseTransactionManager <TContext> transactionManager) { _initializer = initializer ?? throw new ArgumentNullException(nameof(initializer)); _resolver = resolver ?? throw new ArgumentNullException(nameof(resolver)); _transactionManager = transactionManager ?? throw new ArgumentNullException(nameof(transactionManager)); }
public void ICollectionImpl_ObjectItemTypeColloctionCtor_IsCollection() { ICollectionResolver.TypeIsCollection(typeof(_ICollection_ObjectItemTypeColloctionCtor), out ConstructorInfo constructor, out Type itemType, out bool isImplGenerIList, out bool IsImplIList, out bool isImplGenerICollec, out bool isImplIReadOnlyList).IsTrue(); itemType.Is(typeof(object)); constructor.Is(typeof(_ICollection_ObjectItemTypeColloctionCtor).GetConstructor(new Type[] { typeof(List <object>) })); }
public void IListImpl_EmptyParasCtor_IsCollection() { ICollectionResolver.TypeIsCollection(typeof(_IList_EmptyParasCtor), out ConstructorInfo constructor, out Type itemType, out bool isImplGenerIList, out bool IsImplIList, out bool isImplGenerICollec, out bool isImplIReadOnlyList).IsTrue(); itemType.Is(typeof(object)); constructor.GetParameters().Length.Is(0); }
public void GenerIEnumerableWithNonGenerICollectionImpl_SameItemTypeColloctionCtor_IsCollection() { ICollectionResolver.TypeIsCollection(typeof(_GenerIEnumerableWithNonGenerICollection_Int_SameItemTypeColloctionCtor), out ConstructorInfo constructor, out Type itemType, out bool isImplGenerIList, out bool IsImplIList, out bool isImplGenerICollec, out bool isImplIReadOnlyList).IsTrue(); itemType.Is(typeof(int)); constructor.Is(typeof(_GenerIEnumerableWithNonGenerICollection_Int_SameItemTypeColloctionCtor).GetConstructor(new Type[] { typeof(List <int>) })); }
public void ListIsSpecifiedCapacityCtor() { ICollectionResolver.TypeIsCollection(typeof(List <int>), out ConstructorInfo constructor, out Type itemType, out bool isImplGenerIList, out bool IsImplIList, out bool isImplGenerICollec, out bool isImplIReadOnlyList).IsTrue(); itemType.Is(typeof(int)); constructor.Is(typeof(List <int>).GetConstructor(new Type[] { typeof(int) })); }
public EntityInteractionDispatcher( ICollectionResolver collectionResolver, IRepositoryResolver repositoryResolver, IConcurrencyService concurrencyService, IButtonInteraction buttonInteraction) { _collectionResolver = collectionResolver; _repositoryResolver = repositoryResolver; _concurrencyService = concurrencyService; _buttonInteraction = buttonInteraction; }
public TreeService( ICollectionResolver collectionResolver, ICms cms, IRepositoryResolver repositoryResolver, IAuthService authService, IParentService parentService) { _collectionResolver = collectionResolver; _cms = cms; _repositoryResolver = repositoryResolver; _authService = authService; _parentService = parentService; }
public GetEntityDispatcher( ICollectionResolver collectionResolver, IRepositoryResolver repositoryResolver, IParentService parentService, IConcurrencyService concurrencyService, IAuthService authService, IServiceProvider serviceProvider) { _collectionResolver = collectionResolver; _repositoryResolver = repositoryResolver; _parentService = parentService; _concurrencyService = concurrencyService; _authService = authService; _serviceProvider = serviceProvider; }
public UIResolverFactory( ICollectionResolver collectionResolver, IDataProviderResolver dataProviderResolver, IButtonActionHandlerResolver buttonActionHandlerResolver, IDataViewResolver dataViewResolver, IAuthService authService, IHttpContextAccessor httpContextAccessor) { _collectionResolver = collectionResolver; _dataProviderResolver = dataProviderResolver; _buttonActionHandlerResolver = buttonActionHandlerResolver; _dataViewResolver = dataViewResolver; _authService = authService; _httpContextAccessor = httpContextAccessor; }
public GetPageDispatcher(ICollectionResolver collectionResolver) { _collectionResolver = collectionResolver; }
public RepositoryResolver(ICollectionResolver collectionResolver, IServiceProvider serviceProvider) { _collectionResolver = collectionResolver; _serviceProvider = serviceProvider; }