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 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); }