public void TestSetParameterListEventNameValsColType()
        {
            SetParameterListEvent eve = new SetParameterListEvent(null, new ArrayList(), null);
            IQuery query = Mock<IQuery>();
            using (Mocks.Record())
            {
                Expect.Call(query.SetParameterList(null, new ArrayList(), null)).Return(query);
            }

            using (Mocks.Playback())
            {
                eve.OnEvent(query);
            }
        }
Exemplo n.º 2
0
        public IQuery SetParameterList(string name, object[] vals)
        {
            IQueryEvent queryEvent = new SetParameterListEvent(name, vals);

            foreach (IShard shard in shards)
            {
                if (shard.GetQueryById(queryId) != null)
                {
                    shard.GetQueryById(queryId).SetParameterList(name, vals);
                }
                else
                {
                    shard.AddQueryEvent(queryId, queryEvent);
                }
            }
            return(this);
        }