public void ShouldQueryElasticAndUppercase() { var searchResponse = Client.Search <Document>(s => s .From(0) .Size(10) .Query(q => q .Match(m => m .Field(f => f.Introduction) .Query("Imran") ) ) ); var result = Uppercaser.Uppercase(searchResponse.Documents.First().Introduction); Assert.AreEqual("HELLO MY NAME IS IMRAN", result); }
public void ShouldUppercase() { var output = Uppercaser.Uppercase("hello my name is imran"); Assert.AreEqual("HELLO MY NAME IS IMRAN", output); }