Esempio n. 1
0
        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));
        }
Esempio n. 2
0
        public void CautaSalonInexistent()
        {
            //Arrange
            var repository = new SalonRepository();

            //Act
            var salon = repository.CautaSalon("Non-existing salon");

            //Assert
            Assert.IsNull(salon);
        }
Esempio n. 3
0
        public void CautaSalon()
        {
            //Arrange
            var repository = new SalonRepository();

            //Act
            var salon = repository.CautaSalon("Beauty");

            //Assert
            Assert.IsNotNull(salon);
        }