Exemplo n.º 1
0
        public void SetValues_StringTest1()
        {
            IWhereParams param = WhereParams.CreateByObject(new InvoiceIssueDomain());

            param.SetValues("InvoicePrefix", WhereOperator.In, new[] { "1222" });
            var values = param.GetValues("InvoicePrefix");

            Assert.Equal(1, values.Length);
        }
Exemplo n.º 2
0
        public void SetValues_IntTest1()
        {
            IWhereParams param = WhereParams.CreateByObject(new InvoiceIssueDomain());

            param.SetValues("ProductQty", WhereOperator.In, new[] { 1, 2, 3, 4 });

            var values = param.GetValues("ProductQty");

            Assert.Equal(4, values.Length);
        }