Пример #1
0
 public void Fluent()
 {
     FluentPhone
     .Hangup()
     .From("555777555")
     .To("555999111")
     .WithSubject(".Design Pattern")
     .Call();
 }
Пример #2
0
 private static void FluentPhoneTest()
 {
     FluentPhone.Pickup()
     .From("555999123")
     .To("555000999")
     .To("555111144")
     .WithSubject(".NET Design Pattern")
     .Call();
 }
Пример #3
0
 private static void FluentPhoneTest()
 {
     FluentPhone
     .Hangup()
     .From("555444333")
     .To("555888111")
     .To("555999999")
     .WithSubject("Wzorce projektowe w C#")
     .Call();
 }
Пример #4
0
 public static void CallTest()
 {
     FluentPhone
     .Hangup()
     .From("555666777")
     .To("555999000")
     .To("555999000")
     //.WithSubject("Design Patterns")
     .Call();
 }
Пример #5
0
        static void Main(string[] args)
        {
            Console.WriteLine("Hello Builder Pattern!");

            SalesReportTest();

            PhoneTest();

            FluentPhone
            .Hangup()
            .From("555777555")
            .To("555999111")
            .To("555666666")
            .WithSubject(".Design Pattern")
            .Call();

            //FluentPhone p = FluentPhone.Hangup();
            //p.From("6546745645");
            //p.Call();

            // Porownanie wydajnosci
            // dotnet run -c Release
            var summary = BenchmarkRunner.Run <FluentVsStandardBenchmarks>();
        }