示例#1
0
 List<Transaction> getSkinnyTransactionSet(int qty)
 {
     Console.WriteLine(Environment.NewLine);
     Console.WriteLine("LOAD SKINNY TRANSACTION SET");
     var sw = new Stopwatch();
     sw.Start();
     var transactions = new List<Transaction>();
     for (int i = 1; i <= qty; i++)
     {
         var newTrans = new Transaction()
         {
             Amount = i,
             Comment = "Transaction no. " + i.ToString(),
             Identifier = "AA-" + i.ToString()
         };
         transactions.Add(newTrans);
     }
     sw.Stop();
     this.LogOutput("Loaded skinny records - qty:", qty, sw.ElapsedMilliseconds);
     return transactions;
 }
示例#2
0
        List<Transaction> getFatTransactionSet(int qty)
        {
            Console.WriteLine(Environment.NewLine);
            Console.WriteLine("LOAD FAT TRANSACTION SET");
            var sw = new Stopwatch();
            sw.Start();
            string bigTextData = ""
                + " :Massive is a wrapper for your DB tables and uses System.Dynamic extensively. If you try to use this with C# "
                + "3.5 or below, it will explode and you will be sad. Me too honestly - I like how this doesn't require any DLLs other "
                + "than what's in the GAC. Yippee."
                + " :Massive is a wrapper for your DB tables and uses System.Dynamic extensively. If you try to use this with C# "
                + "3.5 or below, it will explode and you will be sad. Me too honestly - I like how this doesn't require any DLLs other "
                + "than what's in the GAC. Yippee."
                + " :Massive is a wrapper for your DB tables and uses System.Dynamic extensively. If you try to use this with C# "
                + "3.5 or below, it will explode and you will be sad. Me too honestly - I like how this doesn't require any DLLs other "
                + "than what's in the GAC. Yippee."
                + " :Massive is a wrapper for your DB tables and uses System.Dynamic extensively. If you try to use this with C# "
                + "3.5 or below, it will explode and you will be sad. Me too honestly - I like how this doesn't require any DLLs other "
                + "than what's in the GAC. Yippee."
                + " :Massive is a wrapper for your DB tables and uses System.Dynamic extensively. If you try to use this with C# "
                + "3.5 or below, it will explode and you will be sad. Me too honestly - I like how this doesn't require any DLLs other "
                + "than what's in the GAC. Yippee.";

            var transactions = new List<Transaction>();
            for (int i = 1; i <= qty; i++)
            {
                var newTrans = new Transaction()
                {
                    Amount = i,
                    Comment = "Transaction no. " + i.ToString()
                    + " : " + bigTextData,
                    Identifier = "AA-" + i.ToString()
                };
                transactions.Add(newTrans);
            }
            sw.Stop();

            this.LogOutput("Loaded fat records - qty:", qty, sw.ElapsedMilliseconds);
            return transactions;
        }