Ejemplo n.º 1
0
        public void PersonCreate_Successful(string personFirstName, string personLastName, string personEmail, string personPhone)
        {
            PersonDAL personDAL = new PersonDAL();

            Person expectedPerson = new Person
            {
                PersonID        = 0,
                PersonFirstName = personFirstName,
                PersonLastName  = personLastName,
                PersonEmail     = personEmail,
                PersonPhone     = personPhone
            };

            var actual = personDAL.PersonCreate_Mock(personFirstName, personLastName, personEmail, personPhone);

            Assert.Equal(expectedPerson.PersonID, actual.PersonID);
            Assert.Equal(expectedPerson.PersonFirstName, actual.PersonFirstName);
            Assert.Equal(expectedPerson.PersonLastName, actual.PersonLastName);
            Assert.Equal(expectedPerson.PersonEmail, actual.PersonEmail);
            Assert.Equal(expectedPerson.PersonPhone, actual.PersonPhone);
        }