Ejemplo n.º 1
0
        public static void DoWork_Version2()
        {
            var firstObj  = new PiContract();
            var secondObj = new PiContract();

            secondObj.BeginOfContract = new DateTime(2015, 1, 1);

            var differentiator = new Diff.Version_2.GenericComparer <PiContract>(new BasicComparisionStrategy <PiContract>());
            var differences    = differentiator.GetDifferences(firstObj, secondObj).ToList();
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            var test1 = new Diff.Version_1.GenericComparer <PiContract>();
            var test2 = new Diff.Version_2.GenericComparer <PiContract>(new BasicComparisionStrategy <PiContract>());
            var test3 = new Diff.Version_3.GenericComparer <PiContract>(new Diff.Version_3.BasicComparisionStrategy <PiContract>());
            var test4 = new Diff.Version_4.GenericComparer <PiContract>(new Diff.Version_4.BasicComparisionStrategy <PiContract>());

            Console.WriteLine($"Sync/Parallel Vergleich: {ITERATIONS:N0} Iterationen");
            Execute_Version1_Sync();
            Execute_Version2_Sync();
            Execute_Version3_Sync();
            Execute_Version4_Async();

            Console.ReadLine();
        }