public async virtual Task SetupAsync() { Byte32Encoder = new Bytes32TypeEncoder(); await InitAutonomousTestAsync(); await DeployIDAsync(); string location = "somewhere"; string hash = "somehash"; OwnedAttribute = await DeployAttributeAsync(location, hash, ID.GetAddress()); NotOwnedAttribute = await DeployAttributeAsync(location, hash, "0x7e2be0405d58e50de14522b47de83383597245e8"); await DeployAttributeOwnedCertificateAsync(location, hash); }
protected async Task DeployIDControllerAsync() { string transactionHash = await IDControllerService.DeployContractAsync( Web3, AddressFrom, ID.GetAddress(), new HexBigInteger(3905820)); TransactionReceipt receipt = await Web3.Eth.Transactions.GetTransactionReceipt. SendRequestAsync(transactionHash); IDController = new IDControllerService(Web3, receipt.ContractAddress); //Change the owner of the ID to make the ID controller the owner transactionHash = await ID.ChangeOwnerAsync(AddressFrom, IDController.GetAddress(), new HexBigInteger(3905820)); Assert.NotNull(transactionHash); }
public async Task TestGetIDAsync() { string IDAddress = await IDController.GetIDAsyncCall(); Assert.AreEqual(ID.GetAddress(), IDAddress); }