コード例 #1
0
        public void ContactModificationTest()
        {
            const int   contactNumberToModify = 1;
            ContactData data = ContactFactory.GetContactDataWithUniqueValues();

            app.ContactHelper.PrepareContactWithIndex(contactNumberToModify);

            List <ContactData> contactListPrev = app.ContactHelper.GetContactList();

            data.Id = app.ContactHelper.GetContactInfoFromList(contactNumberToModify).Id;
            app.ContactHelper.ModifyContactNumber(contactNumberToModify, data);

            List <ContactData> contactListAfter = app.ContactHelper.GetContactList();

            List <ContactData> contactListExpected =
                app.ContactHelper.ModifyContactNumberInList(contactListPrev, contactNumberToModify, data);

            app.ContactHelper.CormpareTwoContactLists(
                app.HelperBase.Sort(contactListAfter),
                app.HelperBase.Sort(contactListExpected))
            .CheckTestResult();
        }