示例#1
0
 public ValueSetServiceInMemoryTests(ITestOutputHelper output, CustomValueSetFixture fixture)
     : base(output)
 {
     this.valueSetRepository     = fixture.ValueSetRepository;
     this.valueSetService        = fixture.ValueSetService;
     this.valueSetCodeRepository = fixture.ValueSetCodeRepository;
 }
示例#2
0
        private void Initialize()
        {
            var valueSetCodeRepository = new SqlValueSetCodeRepository(
                this.SharedContext,
                this.ClientTermContext.AsLazy(),
                this.Logger,
                new DefaultPagingStrategy <ValueSetCodeDto, IValueSetCode>(100));

            var valueSetRepository = new SqlValueSetRepository(
                this.SharedContext,
                this.ClientTermContext.AsLazy(),
                this.Cache,
                this.Logger,
                valueSetCodeRepository,
                new DefaultPagingStrategy <ValueSetDescriptionDto, IValueSet>(20),
                new IsCustomValueStrategy());

            this.ValueSetService = new ValueSetService(valueSetRepository, new IsCustomValueStrategy());
        }