public string Czechify(string text) { var outputText = _adapter.Adapt(text); _logger.LogInformation($"Adapted text: {text} -> {outputText}"); _historyService.AddRequest(new RecentSearch { Timestamp = DateTime.Now, OriginalText = text, AdaptedText = outputText }); return(outputText); }
public void GivenALanguageWithVowels_WhenIAdapt_ThenVowelsAreGone(string input, string expectedOutput) { var output = _adapter.Adapt(input); Assert.Equal(expectedOutput, output, StringComparer.InvariantCultureIgnoreCase); }