Exemplo n.º 1
0
        public void AddsGetsClients_AddsAndGetsAssociatedClientsFromDb_ClientList()
        {
            Specialty newSpecialty = new Specialty("Chemistry", "Science");

            newSpecialty.Save();
            Client newClient = new Client("Ashley", "Adelman", "*****@*****.**", "1234567890", "123 ABC Street", "Xyz", "ZZ", "12345", 15);

            newClient.Save();
            newSpecialty.AddClient(newClient);
            List <Client> expectedList = new List <Client> {
                newClient
            };
            List <Client> actualList = newSpecialty.GetClients();

            CollectionAssert.AreEqual(expectedList, actualList);
        }