Пример #1
0
        static void Main()
        {
            StringCounterClient client = new StringCounterClient();
            int numberOfAppears        = client.CountHowMuchTimesStringApersInOtherString("I like to move it, move it", "move");

            Console.WriteLine(numberOfAppears);
        }
Пример #2
0
        public static void Main()
        {
            var service = new StringCounterClient();

            var result = service.GetCount("test", "sdf test sdfsdf test, proba test, test");

            Console.WriteLine(result);
        }
Пример #3
0
        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);
        }
Пример #4
0
        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);
        }
Пример #5
0
        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) =>
                {

                });
        }
Пример #6
0
 static void Main()
 {
     StringCounterClient client = new StringCounterClient();
     int numberOfAppears = client.CountHowMuchTimesStringApersInOtherString("I like to move it, move it", "move");
     Console.WriteLine(numberOfAppears);
 }
 static void Main()
 {
     StringCounterClient client = new StringCounterClient();
     int numberOfAppears = client.CountHowMuchTimesStringApersInOtherString("Something, something, something, DARK SIDE", "something");
     Console.WriteLine(numberOfAppears);
 }