public EntityService() { _biletService = new BiletRepository(); _calisanService = new CalisanRepository(); _filmService = new FilmRepository(); _filmturService = new FilmTurRepository(); _musteriService = new MusteriRepository(); _salonService = new SalonRepository(); _seansService = new SeansRepository(); }
public void CautaSalonInexistent() { //Arrange var repository = new SalonRepository(); //Act var salon = repository.CautaSalon("Non-existing salon"); //Assert Assert.IsNull(salon); }
public void CautaSalon() { //Arrange var repository = new SalonRepository(); //Act var salon = repository.CautaSalon("Beauty"); //Assert Assert.IsNotNull(salon); }
public void AdaugaSalon() { //Arrange var salon = SalonFactory.Instance.CreazaSalon("Beauty Zone Salon", TipStareSalon.Inchis, null, "RO231293"); var repository = new SalonRepository(); //Act repository.AdaugaSalon(salon); //Assert Assert.IsTrue(repository.NumarSaloane() == 1); }
public void AdaugaClient() { //Arrange var client = PersoanaFactory.Instance.CreazaClient("Popescu", "Ion", "1901225201354", TipClient.Fidel); var repository = new SalonRepository(); var salon = repository.CautaSalon("Beauty"); //Act repository.AdaugaClient(salon, client); //Assert Assert.IsTrue(repository.CautaSalon("Beauty").Clienti.Contains(client)); }
public void Setup() { salonRepository = new SalonRepository(base._DbContext); }
public SalonService(SalonRepository salonRepository) { this.salonRepository = salonRepository; }