Ejemplo n.º 1
0
        public async Task TransactionFilter_FromAndTo_Reports_Non_Matches(string from, string to)
        {
            var tx1 = new Transaction {
                From = from, To = to
            };
            var filter = TransactionFilter.FromAndTo(Address1, Address2);

            Assert.False(await filter.IsMatchAsync(tx1));
        }
Ejemplo n.º 2
0
        public async Task TransactionFilter_FromAndTo_Reports_Matches()
        {
            var tx = new Transaction {
                From = Address1, To = Address2
            };
            var filter = TransactionFilter.FromAndTo(Address1, Address2);

            Assert.True(await filter.IsMatchAsync(tx));
        }