Exemplo n.º 1
0
        public PersonStrategy(IPersonDataRepository dataRepository)
        {
            //Set the data persistence to XML by default.
            _data = dataRepository;

            //If null was passed in as a data repository.
            //Then we will assume to use XML persistence by default.
            if (_data == null)
            {
                _data = new PersonRepository_XML_Persistence();
            }
        }
Exemplo n.º 2
0
 public GetByIdHandler(IPersonDataRepository personDataRepository, IClientDbContext context)
 {
     _personDataRepository = personDataRepository;
     _context = context;
 }