public Service(AngajatiDBRepository angajatiDBRepository, CazuriDBRepository cazuriDBRepository, DonatiiDBRepository donatiiDBRepository, DonatoriDBRepository donatoriDBRepository, ValidatorCazuri validatorCazuri, ValidatorDonatii validatorDonatii, ValidatorDonator validatorDonatori) { this.angajatiDBRepository = angajatiDBRepository; this.cazuriDBRepository = cazuriDBRepository; this.donatiiDBRepository = donatiiDBRepository; this.donatoriDBRepository = donatoriDBRepository; this.validatorCazuri = validatorCazuri; this.validatorDonatii = validatorDonatii; this.validatorDonatori = validatorDonatori; loggedClients = new Dictionary <string, ITeledonObserver>(); }
public Service(AngajatiDBRepository angajatiDBRepository, CazuriDBRepository cazuriDBRepository, DonatiiDBRepository donatiiDBRepository, DonatoriDBRepository donatoriDBRepository, ValidatorCazuri validatorCazuri, ValidatorDonatii validatorDonatii, ValidatorDonator validatorDonatori) { this.angajatiDBRepository = angajatiDBRepository; this.cazuriDBRepository = cazuriDBRepository; this.donatiiDBRepository = donatiiDBRepository; this.donatoriDBRepository = donatoriDBRepository; this.validatorCazuri = validatorCazuri; this.validatorDonatii = validatorDonatii; this.validatorDonatori = validatorDonatori; loggedClients = new List <UpdateService.Client>(); }
static void Main(string[] args) { DonatoriDBRepository repo = new DonatoriDBRepository(); Console.WriteLine(repo.findDonatoriDupaNume("Manuela")[0].Name); }