Esempio n. 1
0
        public void Test_ByStylist_ReturnsTrueIfListsAreTheSame()
        {
            Stylist newStylist   = new Stylist("A", "*****@*****.**", "photolink");
            Client  firstClient  = new Client("Person A", 1, "email", newStylist.GetId());
            Client  secondClient = new Client("Person B", 2, "email", newStylist.GetId());

            newStylist.Save();
            firstClient.Save();
            secondClient.Save();
            List <Client> result   = Client.ByStylist();
            List <Client> testList = new List <Client> {
                firstClient, secondClient
            };

            Assert.Equal(testList, result);
        }