Exemple #1
0
        public void Client_DoConstructorAndGettersWork()
        {
            //Act
            Client newClient = new Client("Sara", 1);

            //Arrange
            Assert.Equal("Sara", newClient.GetName());
            Assert.Equal(0, newClient.GetId());
            Assert.Equal(1, newClient.GetStylist());
        }
Exemple #2
0
        public void Find_CandFindAndReturnARow()
        {
            //Arrange
            Client client = new Client("Bill", 1);

            client.Save();
            Client client2 = new Client("George", 2);

            client2.Save();
            // Act
            Client foundClient = Client.Find(client.GetId());

            //Assert
            Assert.Equal(client, foundClient);
        }