public async Task <string> ValidateDataAsync(DataRow statusDataRow, string cellData)
        {
            var statusInJira = await _jira.IsValidJiraStatusAsync(
                statusDataRow[ColumnTypes.JiraNumber].ToString(),
                statusDataRow[ColumnTypes.Status].ToString());

            if (statusInJira != string.Empty)
            {
                return(_outPutGenerator.IncorrectAndCorrect(statusDataRow[ColumnTypes.Status].ToString(), statusInJira));
            }

            return(statusDataRow[ColumnTypes.Status].ToString());
        }
예제 #2
0
        public async Task <string> ValidateDataAsync(DataRow statusDataRow, string cellData)
        {
            var statusInJira = await _jira.IsValidJiraStatusAsync(
                statusDataRow[ColumnTypes.JiraNumber].ToString(),
                statusDataRow[ColumnTypes.Status].ToString());

            if (cellData == "Ready For Test")
            {
                if (statusDataRow["Category"].ToString() != "Merged to Epic")
                {
                    return(_outPutGenerator.HighlightedText(cellData + Environment.NewLine + "Categoty Should be ->Merged to Epic"));
                }
            }

            if (statusInJira != string.Empty)
            {
                return(_outPutGenerator.IncorrectAndCorrect(statusDataRow[ColumnTypes.Status].ToString(), statusInJira));
            }

            return(statusDataRow[ColumnTypes.Status].ToString());
        }