public void AssertError(string testName, NotificationsViewModelData notificationsViewModelData, EditProjectControls editProjectControls, ProjectConfigErrorMessages projectConfigErrorMessages, IList <string> expctedErrorCodes)
        {
            bool expectError = expctedErrorCodes.Count > 0;

            _propertiesAsserts.AssertProperty(testName, nameof(editProjectControls.ImgErrorVisible), editProjectControls.ImgErrorVisible, expectError);
            _propertiesAsserts.AssertProperty(testName, nameof(editProjectControls.ImgValidVisible), editProjectControls.ImgValidVisible, !expectError);
            _propertiesAsserts.AssertProperty(testName, nameof(editProjectControls.BtnNavToProcessVisible), editProjectControls.BtnNavToProcessVisible, !expectError);


            AssertErrorMessage(testName, expctedErrorCodes.Contains(IdMandatory.Name), projectConfigErrorMessages.IdErrorMessage, nameof(projectConfigErrorMessages.IdErrorMessage));
            //AssertErrorMessage(testName, expctedErrorCodes.Contains(DBTypeValidator.Name), projectConfigErrorMessages.DBTypeCodeErrorMessage, nameof(projectConfigErrorMessages.DBTypeCodeErrorMessage));
            AssertErrorMessage(testName, expctedErrorCodes.Contains(DBNameValidator.Name), projectConfigErrorMessages.DBNameErrorMessage, nameof(projectConfigErrorMessages.DBNameErrorMessage));
            //AssertErrorMessage(testName, expctedErrorCodes.Contains(DBBackupFolderValidator.Name), projectConfigErrorMessages.BackupFolderPathErrorMessage, nameof(projectConfigErrorMessages.BackupFolderPathErrorMessage));
            AssertErrorMessage(testName, expctedErrorCodes.Contains(DeliveryArtifactFolderPathValidator.Name), projectConfigErrorMessages.DeliveryArtifactFolderPathErrorMessage, nameof(projectConfigErrorMessages.DeliveryArtifactFolderPathErrorMessage));
            AssertErrorMessage(testName, expctedErrorCodes.Contains(DeployArtifactFolderPathValidator.Name), projectConfigErrorMessages.DeployArtifactFolderPathErrorMessage, nameof(projectConfigErrorMessages.DeployArtifactFolderPathErrorMessage));
            AssertErrorMessage(testName, expctedErrorCodes.Contains(DevScriptsBaseFolderPathValidator.Name), projectConfigErrorMessages.DevScriptsBaseFolderPathErrorMessage, nameof(projectConfigErrorMessages.DevScriptsBaseFolderPathErrorMessage));

            if (expectError)
            {
                _notificationsViewModelAsserts.AssertNotificationsViewModelError(testName, notificationsViewModelData, CoreTextResources.ProjectConfigValidation);
            }
            else
            {
                _notificationsViewModelAsserts.AssertNotificationsViewModelCompleteSuccessfully(testName, notificationsViewModelData);
            }
        }
 public void AssertError(string testName, NotificationsViewModelData notificationsViewModelData, EditProjectControls editProjectControls, ProjectConfigErrorMessages projectConfigErrorMessages, string errorCode)
 {
     AssertError(testName, notificationsViewModelData, editProjectControls, projectConfigErrorMessages, new List <string>()
     {
         errorCode
     });
 }
 public void AssertNotificationsViewModelWaitingForUser(string testName, NotificationsViewModelData notificationsViewModelData)
 {
     _propertiesAsserts.AssertProperty(testName, nameof(notificationsViewModelData.NotificationStatus), notificationsViewModelData.NotificationStatus.ToString(), NotificationStatus.WaitingForUser.ToString());
     _propertiesAsserts.AssertProperty(testName, nameof(notificationsViewModelData.ProcessStatusMessage), notificationsViewModelData.ProcessStatusMessage, UITextResources.WaitingForUserMessage);
     _propertiesAsserts.AssertProperty(testName, nameof(notificationsViewModelData.StatusImageType), notificationsViewModelData.StatusImageType.ToString(), StatusImageType.Succeed.ToString());
 }
 public void AssertNotificationsViewModelAttention(string testName, NotificationsViewModelData notificationsViewModelData, string instrationMessage)
 {
     _propertiesAsserts.AssertProperty(testName, nameof(notificationsViewModelData.NotificationStatus), notificationsViewModelData.NotificationStatus.ToString(), NotificationStatus.Attention.ToString());
     _propertiesAsserts.AssertProperty(testName, nameof(notificationsViewModelData.ProcessStatusMessage), notificationsViewModelData.ProcessStatusMessage, instrationMessage);
     _propertiesAsserts.AssertProperty(testName, nameof(notificationsViewModelData.StatusImageType), notificationsViewModelData.StatusImageType.ToString(), StatusImageType.Warning.ToString());
 }
 public void AssertNotificationsViewModelProcessError(string testName, NotificationsViewModelData notificationsViewModelData)
 {
     _propertiesAsserts.AssertProperty(testName, nameof(notificationsViewModelData.NotificationStatus), notificationsViewModelData.NotificationStatus.ToString(), NotificationStatus.Error.ToString());
     _propertiesAsserts.AssertPropertyContains(testName, nameof(notificationsViewModelData.ProcessStatusMessage), notificationsViewModelData.ProcessStatusMessage, "Cannot find data type nvarcharaaaa.");
     _propertiesAsserts.AssertProperty(testName, nameof(notificationsViewModelData.StatusImageType), notificationsViewModelData.StatusImageType.ToString(), StatusImageType.Error.ToString());
 }