Beispiel #1
0
        public PersonService(
            ISearchableRepository <Benday.EasyAuthDemo.Api.DataAccess.Entities.PersonEntity> repository,
            IValidatorStrategy <Benday.EasyAuthDemo.Api.DomainModels.Person> validator,
            IUsernameProvider usernameProvider, ISearchStringParserStrategy searchStringParser) :
            base(usernameProvider)
        {
            _Repository         = repository;
            _ValidatorInstance  = validator;
            _SearchStringParser = searchStringParser;

            _Adapter = new PersonAdapter();
        }
        public LookupService(
            ILookupRepository repository,
            IValidatorStrategy <Benday.EasyAuthDemo.Api.DomainModels.Lookup> validator,
            IUsernameProvider usernameProvider, ISearchStringParserStrategy searchStringParser) :
            base(usernameProvider)
        {
            _Repository         = repository;
            _ValidatorInstance  = validator;
            _SearchStringParser = searchStringParser;

            _Adapter = new LookupAdapter();
        }