private void VerifyViews(CustomisationImportRequest request)
        {
            var response = new CustomisationImportResponse();

            var optionMetadata =
                CustomisationImportService.ExtractOptionSetsFromExcel(request.ExcelFile.FileName, Controller, response);
            var fieldMetadata =
                CustomisationImportService.ExtractFieldMetadataFromExcel(request.ExcelFile.FileName, Controller,
                                                                         optionMetadata, response).Values;
            var recordMetadata =
                CustomisationImportService.ExtractRecordMetadataFromExcel(request.ExcelFile.FileName, Controller,
                                                                          fieldMetadata, response).Values;

            foreach (var metadata in recordMetadata)
            {
                var views = XrmRecordService.GetViewsToUpdate(metadata);
                Assert.IsTrue(views.Any());
                foreach (var query in views)
                {
                    foreach (var viewField in metadata.Views.First().Fields)
                    {
                        if (query.Contains("fetchxml"))
                        {
                            Assert.IsTrue(
                                query.GetStringField("fetchxml")
                                .Contains("<attribute name=\"" + viewField.FieldName + "\" />"));
                        }
                        if (query.Contains("layoutxml"))
                        {
                            Assert.IsTrue(
                                query.GetStringField("layoutxml")
                                .Contains("<cell name=\"" + viewField.FieldName + "\" width=\"" + viewField.Width +
                                          "\" />"));
                        }
                    }
                }
            }
        }