public void GivenGetsAnIndicationForTheSocialCareActFrom(string p0, string p1)
        {
            // deploy needed contracts
            var web3        = new Web3();
            var addressFrom = web3.Eth.Accounts.SendRequestAsync().Result[0];

            var tr1Hash = SmartIdentityRegistryService.DeployContractAsync(web3, addressFrom, new HexBigInteger(900000)).Result;
            var receipt = web3.Eth.Transactions.GetTransactionReceipt.SendRequestAsync(tr1Hash).Result;

            // var tr2Hash = SmartIdentityService.DeployContractAsync(web3, addressFrom, new HexBigInteger(900000)).Result;
            // var receipt2 = web3.Eth.Transactions.GetTransactionReceipt.SendRequestAsync(tr2Hash).Result;

            //  var tr3Hash = MigrationsService.DeployContractAsync(web3, addressFrom, new HexBigInteger(1)).Result;
            // endRequestAndWaitForReceiptAsync
            //var transactionHash = await
            //    web3.Eth.DeployContract.SendRequestAsync(abi, contractByteCode, addressFrom,
            //        new HexBigInteger(900000), multiplier);

            //var receipt = await web3.Eth.Transactions.GetTransactionReceipt.SendRequestAsync(transactionHash);

            //ScenarioContext.Current.Add("multiplicationContract", web3.Eth.GetContract(abi, receipt.ContractAddress));
        }
 public void ShouldDeploySmartIdentityRegistry()
 {
     using (var testrpcRunner = new TestRPCEmbeddedRunner())
     {
         try
         {
             testrpcRunner.RedirectOuputToDebugWindow = true;
             testrpcRunner.StartTestRPC();
             var web3        = new Web3();
             var addressFrom = (web3.Eth.Accounts.SendRequestAsync()).Result[0];
             // Deploy the contract and add the multiplier to the constructor
             var transactionHash =
                 SmartIdentityRegistryService.DeployContractAsync(web3, addressFrom, new HexBigInteger(900000)).Result;
             Assert.IsNotNull(transactionHash);
             var receipt = web3.Eth.Transactions.GetTransactionReceipt.SendRequestAsync(transactionHash).Result;
             Assert.IsNotNull(receipt);
             var s = new SmartIdentityRegistryService(web3, addressFrom);
         }
         finally
         {
             testrpcRunner.StopTestRPC();
         }
     }
 }