Пример #1
0
        private void VerifyRequiredFields(IList <EntryFieldType> actualFields, bool isSaveFlow = false)
        {
            IList <string> actualReqFields = new List <string>();

            foreach (EntryFieldType field in actualFields)
            {
                if (isSaveFlow && !field.GetString().Equals("UploadFiles"))
                {
                    actualReqFields.Add(field.GetString());
                }
                else
                {
                    actualReqFields.Add(field.GetString());
                }
            }

            var expectedReqFields = GetTenantRequiredFieldLocators()
                                    .Where(i => !string.IsNullOrEmpty(i))
                                    .ToList();

            TestUtility.AddAssertionToList(PageAction.VerifyExpectedList(actualReqFields, expectedReqFields,
                                                                         "VerifyUploadQASubmittalRequiredFields"), "VerifyUploadQASubmittalRequiredFields");
        }