public ValueSetServiceInMemoryTests(ITestOutputHelper output, CustomValueSetFixture fixture) : base(output) { this.valueSetRepository = fixture.ValueSetRepository; this.valueSetService = fixture.ValueSetService; this.valueSetCodeRepository = fixture.ValueSetCodeRepository; }
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()); }