public StringCompareResult Get(string inputText, string subText)
        {
            var returnResult = new StringCompareResult()
            {
                IsValid = true, Description = new List <string>()
            };

            returnResult = _stringComparerService.ValidateInputString(inputText, subText);

            if (returnResult.IsValid)
            {
                var indices = _stringComparerService.GetAllIndicesOf(subText, inputText);
                if (indices.Any())
                {
                    returnResult.Description.AddRange(indices);
                }
                else
                {
                    returnResult.IsValid = false;
                    returnResult.Description.Add("No matching text found.");
                }
            }

            return(returnResult);
        }
        public void ShouldReturnFalseIfInputsAreNotValid(string inputText, string subText, bool isValid)
        {
            var result = _stringComparerService.ValidateInputString(inputText, subText);

            Assert.AreEqual(isValid, result.IsValid);
        }