Example #1
0
 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));
 }
Example #2
0
 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));
 }
Example #3
0
 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));
 }
Example #5
0
        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>) }));
        }
Example #6
0
        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);
        }
Example #7
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>) }));
        }
Example #8
0
        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;
 }
Example #10
0
 public TreeService(
     ICollectionResolver collectionResolver,
     ICms cms,
     IRepositoryResolver repositoryResolver,
     IAuthService authService,
     IParentService parentService)
 {
     _collectionResolver = collectionResolver;
     _cms = cms;
     _repositoryResolver = repositoryResolver;
     _authService        = authService;
     _parentService      = parentService;
 }
Example #11
0
 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;
 }
Example #12
0
 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;
 }
Example #13
0
 public GetPageDispatcher(ICollectionResolver collectionResolver)
 {
     _collectionResolver = collectionResolver;
 }
Example #14
0
 public RepositoryResolver(ICollectionResolver collectionResolver, IServiceProvider serviceProvider)
 {
     _collectionResolver = collectionResolver;
     _serviceProvider    = serviceProvider;
 }