Esempio n. 1
0
        public async Task GetElectorVoteWithRecords_NotExist_Test()
        {
            await ElectionContract_Vote_Test();

            var voteRecords = await ElectionContractStub.GetElectorVoteWithRecords.CallAsync(new StringValue
            {
                Value = ValidationDataCenterKeyPairs.Last().PublicKey.ToHex()
            });

            voteRecords.ShouldBe(new ElectorVote
            {
                Pubkey = ByteString.CopyFrom(ValidationDataCenterKeyPairs.Last().PublicKey)
            });
        }