private void Arrange() { var txn1 = new ClaimSettlement("ABC123", 1000.00m, DateTime.Now, "QWE123", 10000, ClaimType.TotalLoss); var txn2 = new ClaimSettlement("VBG345", 2000.00m, DateTime.Now, "JKH567", 20000, ClaimType.TotalLoss); var txn3 = new ClaimSettlement("XCF234", 3000.00m, DateTime.Now, "DH23ED", 30000, ClaimType.TotalLoss); var txn4 = new ClaimSettlement("CBHD45", 4000.00m, DateTime.Now, "DH34K6", 40000, ClaimType.TotalLoss); txnPool.AddTransaction(txn1); txnPool.AddTransaction(txn2); txnPool.AddTransaction(txn3); txnPool.AddTransaction(txn4); block1.Add(txnPool.GetTransaction()); block1.Add(txnPool.GetTransaction()); block2.Add(txnPool.GetTransaction()); block2.Add(txnPool.GetTransaction()); }
private static void AddTransactionsToBlocksAndCalculateHashes( IBlock <ClaimSettlement> block1, IBlock <ClaimSettlement> block2, IBlock <ClaimSettlement> block3, IBlock <ClaimSettlement> block4) { block1.Add(txnPool.GetTransaction()); block1.Add(txnPool.GetTransaction()); block1.Add(txnPool.GetTransaction()); block1.Add(txnPool.GetTransaction()); block2.Add(txnPool.GetTransaction()); block2.Add(txnPool.GetTransaction()); block2.Add(txnPool.GetTransaction()); block2.Add(txnPool.GetTransaction()); block3.Add(txnPool.GetTransaction()); block3.Add(txnPool.GetTransaction()); block3.Add(txnPool.GetTransaction()); block3.Add(txnPool.GetTransaction()); block4.Add(txnPool.GetTransaction()); block4.Add(txnPool.GetTransaction()); block4.Add(txnPool.GetTransaction()); block4.Add(txnPool.GetTransaction()); block1.SetBlockHash(null); block2.SetBlockHash(block1); block3.SetBlockHash(block2); block4.SetBlockHash(block3); }