public void Verify_Transaction_Origin_SetValue()
        {
            var bridgeContext = GetRequiredService <IHostSmartContractBridgeContextService>().Create();
            var origin        = SampleAddress.AddressList[0];

            bridgeContext.TransactionContext = new TransactionContext
            {
                Origin      = origin,
                Transaction = new Transaction()
                {
                    From = SampleAddress.AddressList[1],
                    To   = SampleAddress.AddressList[2]
                }
            };
            var contractContext = new CSharpSmartContractContext(bridgeContext);

            contractContext.Origin.ShouldBe(origin);
            contractContext.Origin.ShouldNotBe(bridgeContext.TransactionContext.Transaction.From);
        }
        public CSharpSmartContractContextTests()
        {
            StateProvider = GetRequiredService <IStateProviderFactory>().CreateStateProvider();
            BridgeContext = GetRequiredService <IHostSmartContractBridgeContextService>().Create();

            var transactionContext = new TransactionContext()
            {
                Transaction = new Transaction()
                {
                    From = Address.Generate(),
                    To   = Address.Generate()
                }
            };

            BridgeContext.TransactionContext = transactionContext;
            Contract.InternalInitialize(BridgeContext);

            ContractContext = new CSharpSmartContractContext(BridgeContext);
        }