Ejemplo n.º 1
0
 /// <summary>
 /// Constructor.
 /// Uses <see cref="IAbpStartupConfiguration.DefaultNameOrConnectionString"/> as connection string.
 /// </summary>
 protected AbpDbContext()
 {
     Logger = NullLogger.Instance;
     AbpSession = NullAbpSession.Instance;
     EntityChangeEventHelper = NullEntityChangeEventHelper.Instance;
     GuidGenerator = SequentialGuidGenerator.Instance;
 }
Ejemplo n.º 2
0
 public PackageBuilder(ICryptoService cryptoService, 
                       IDateTimeService dateTimeService,
                       IGuidGenerator guidGenerator
     )
 {
     this.cryptoService = cryptoService;
     this.dateTimeService = dateTimeService;
     this.guidGenerator = guidGenerator;
 }
Ejemplo n.º 3
0
 public OrderingDataSeedContributor(
     IGuidGenerator guidGenerator)
 {
     _guidGenerator = guidGenerator;
 }
 public DocumentManagementDataSeedContributor(
     IGuidGenerator guidGenerator, ICurrentTenant currentTenant)
 {
     _guidGenerator = guidGenerator;
     _currentTenant = currentTenant;
 }
Ejemplo n.º 5
0
 public AccountCategoriesModel(coaAccountSubCategoryAppService coaAccountSubCategoryAppService, IGuidGenerator guidGenerator, CompanyAppService CompanyAppService, coaHeadAccountAppService headAccountsAppService)
 {
     _subCategoryAppService  = coaAccountSubCategoryAppService;
     _guidGenerator          = guidGenerator;
     _companyAppService      = CompanyAppService;
     _headAccountsAppService = headAccountsAppService;
 }
 public CodingManagementDataSeedContributor(
     IGuidGenerator guidGenerator)
 {
     _guidGenerator = guidGenerator;
 }
 public PrepaymentDataSeedContributor(
     IGuidGenerator guidGenerator)
 {
     _guidGenerator = guidGenerator;
 }
 public DeviceManagerDataSeedContributor(
     IGuidGenerator guidGenerator)
 {
     _guidGenerator = guidGenerator;
 }
Ejemplo n.º 9
0
 public GiftCardManagementDataSeedContributor(
     IGuidGenerator guidGenerator)
 {
     _guidGenerator = guidGenerator;
 }
Ejemplo n.º 10
0
 public DatabaseContext(IConfiguration configuration, TenancyConfiguration tenancyConfiguration, IGuidGenerator generator)
     : base(configuration, tenancyConfiguration, generator, new ContextConfigurationModule())
 {
     this.DisableDatabaseInitialization();
 }
 protected AuditLogRepository_Tests()
 {
     AuditLogRepository = GetRequiredService <IAuditLogRepository>();
     GuidGenerator      = GetRequiredService <IGuidGenerator>();
 }
Ejemplo n.º 12
0
 public SecondContextTestDataBuilder(IBasicRepository <BookInSecondDbContext, Guid> bookRepository, IGuidGenerator guidGenerator)
 {
     _bookRepository = bookRepository;
     _guidGenerator  = guidGenerator;
 }
Ejemplo n.º 13
0
 public AuthorRepositoryTests()
 {
     _authorRepository = GetRequiredService <IRepository <Author, Guid> >();
     _guidGenerator    = GetRequiredService <IGuidGenerator>();
 }
Ejemplo n.º 14
0
 public ListModel(IGuidGenerator guidGenerator, IJsonSerializer jsonSerializer, TimesheetAppService timesheetAppService)
 {
     this.guidGenerator  = guidGenerator;
     JsonSerializer      = jsonSerializer;
     TimesheetAppService = timesheetAppService;
 }
Ejemplo n.º 15
0
 public CommentAppService(ICommentRepository commentRepository, IGuidGenerator guidGenerator, IBlogUserLookupService userLookupService)
 {
     _commentRepository = commentRepository;
     _guidGenerator     = guidGenerator;
     UserLookupService  = userLookupService;
 }
Ejemplo n.º 16
0
 public GuidController(IGuidGenerator generator, IGetRandomGuidParametersValidator validator)
 {
     _generator = generator;
     _validator = validator;
 }
Ejemplo n.º 17
0
 public ProductDataSeedContributor(
     IGuidGenerator guidGenerator, ICurrentTenant currentTenant)
 {
     _guidGenerator = guidGenerator;
     _currentTenant = currentTenant;
 }
Ejemplo n.º 18
0
 public PersonPerCityCounterRepository(IMongoConnection mongoConnection, IGuidGenerator guidGenerator)
 {
     MongoConnection = mongoConnection;
     GuidGenerator   = guidGenerator;
 }
Ejemplo n.º 19
0
 public PersistedGrantStore(IPersistentGrantRepository persistentGrantRepository,
                            IObjectMapper <AbpIdentityServerDomainModule> objectMapper, IGuidGenerator guidGenerator)
 {
     PersistentGrantRepository = persistentGrantRepository;
     ObjectMapper  = objectMapper;
     GuidGenerator = guidGenerator;
 }
Ejemplo n.º 20
0
 public ElsaIdGenerator(IGuidGenerator guidGenerator)
 {
     _guidGenerator = guidGenerator;
 }
 public IdentityClaimTypeRepository_Tests()
 {
     ClaimTypeRepository = ServiceProvider.GetRequiredService <IIdentityClaimTypeRepository>();
     GuidGenerator       = ServiceProvider.GetRequiredService <IGuidGenerator>();
 }
Ejemplo n.º 22
0
 public void NewId(IGuidGenerator guidGenerator)
 {
     Id = guidGenerator.Create();
 }
 public ProjectInfoByConventionStep(IProjectTypeNamingConvention projectTypeNamingConvention, IGuidGenerator guidGenerator)
 {
     this.projectTypeNamingConvention = projectTypeNamingConvention;
     this.guidGenerator = guidGenerator;
 }
 public UniappManagementDataSeedContributor(
     IGuidGenerator guidGenerator)
 {
     _guidGenerator = guidGenerator;
 }
Ejemplo n.º 25
0
 public ResourceManagementDataSeedContributor(
     IGuidGenerator guidGenerator)
 {
     _guidGenerator = guidGenerator;
 }
Ejemplo n.º 26
0
        public UpdateInvoiceReadModelEventHandlers(IMediator mediator, Store store, IUnitOfWork unitOfWork, IGuidGenerator guidGenerator)
        {
            _Mediator      = mediator;
            _UnitOfWork    = unitOfWork;
            _GuidGenerator = guidGenerator;
            _InvoiceStream = store.Open(Streams.Invoices);

            _Mapper = new MapperConfiguration(cfg =>
            {
                cfg.CreateMap <ReportPrinted, InvoicePrinted>()
                .ForMember(dest => dest.InvoiceId, opt => opt.MapFrom(src => src.RecordId));
            }).CreateMapper();
        }
 public BookStoreTestDataSeedContributor(
     IRepository <Book, Guid> bookRepository, IGuidGenerator guidGenerator)
 {
     _bookRepository = bookRepository;
     _guidGenerator  = guidGenerator;
 }
 public IdenityClaimTypeManager(IIdentityClaimTypeRepository identityClaimTypeRepository, IGuidGenerator guidGenerator)
 {
     _identityClaimTypeRepository = identityClaimTypeRepository;
     _guidGenerator = guidGenerator;
 }
Ejemplo n.º 29
0
        public CreateModel(coaAppService coaAppService, CompanyAppService CompanyAppService, coaHeadAccountAppService headAccountsAppService, coaAccountSubCategoryAppService subCategoryAppService, IRepository <AccountStatementType, Guid> accStatementTypeRepo, IRepository <DictionaryValue, Guid> dictionaryValuesRepo, coaSubLedgerRequirementsAppService subLedgerRequirementsAppService, branchAppService branchAppService, IGuidGenerator guidGenerator)
        {
            _coaAppService          = coaAppService;
            _subCategoryAppService  = subCategoryAppService;
            _companyAppService      = CompanyAppService;
            _headAccountsAppService = headAccountsAppService;

            _accStatementTypeRepo            = accStatementTypeRepo;
            _dictionaryValuesRepo            = dictionaryValuesRepo;
            _subLedgerRequirementsAppService = subLedgerRequirementsAppService;
            _branchAppService = branchAppService;
            _guidGenerator    = guidGenerator;
        }
Ejemplo n.º 30
0
 static ChatSeed()
 {
     guidGenerator = BaseSeed.GuidGenerator;
 }
Ejemplo n.º 31
0
 public PermissionTestDataBuilder(IGuidGenerator guidGenerator, IPermissionGrantRepository permissionGrantRepository)
 {
     _guidGenerator             = guidGenerator;
     _permissionGrantRepository = permissionGrantRepository;
 }
 public ImporterMetaService(IGuidGenerator guidGenerator)
 {
     _guidGenerator = guidGenerator;
 }
Ejemplo n.º 33
0
 /// <summary>
 /// 注入属性设置为空
 /// </summary>
 private void SetNullsForInjectedProperties()
 {
     Logger = NullLogger.Instance;
     AbpSession = NullAbpSession.Instance;
     EntityChangeEventHelper = NullEntityChangeEventHelper.Instance;
     GuidGenerator = SequentialGuidGenerator.Instance;
 }
 public MediaDataSeedContributor(
     IGuidGenerator guidGenerator)
 {
     _guidGenerator = guidGenerator;
 }