static void Main() { StringCounterClient client = new StringCounterClient(); int numberOfAppears = client.CountHowMuchTimesStringApersInOtherString("I like to move it, move it", "move"); Console.WriteLine(numberOfAppears); }
public static void Main() { var service = new StringCounterClient(); var result = service.GetCount("test", "sdf test sdfsdf test, proba test, test"); Console.WriteLine(result); }
public static void Main() { var client = new StringCounterClient(); string lookingFor = "day"; string text = "monday, tuesday, wednesday... firday"; int count = client.FindWordOccurance(text, lookingFor); Console.WriteLine("The word {0} contains {1} times.", lookingFor, count); }
public static void Main() { DayOfWeekServiceClient firstClient = new DayOfWeekServiceClient(); var dayOfWeek = firstClient.ReturnDayOfWeekOnBulgarian(DateTime.Now.AddDays(-2)); Console.WriteLine(dayOfWeek); StringCounterClient secondClient = new StringCounterClient(); var searchPart = "my"; var fullText = "My name is Myriam."; var countOfStrings = secondClient.CountStringAppearances(searchPart, fullText); Console.WriteLine("The number of appearances of \"my\" is {0}", countOfStrings); var strings = secondClient.CountStringAppearancesAsync(searchPart, fullText) .ContinueWith((clts) => { }); }
static void Main() { StringCounterClient client = new StringCounterClient(); int numberOfAppears = client.CountHowMuchTimesStringApersInOtherString("Something, something, something, DARK SIDE", "something"); Console.WriteLine(numberOfAppears); }