public ScanCommandTest() { _config = A.Fake <IHBaseConfiguration>(); _pool = A.Fake <IConnectionPool>(); _thriftClient = A.Fake <IThriftClient>(); var configuration = new MockDomainObjectConfiguration(); _map = configuration.ExposeClassMap(); var pg = new ProxyGenerator(); _map.Generator = pg.ProduceGenerator <MockDomainObject>(); A.CallTo(() => _pool.GetClient()).Returns(_thriftClient); // A.CallTo(() => _pool.ReleaseClient(_thriftClient)).MustHaveHappened(); //A.CallTo(() => // _thriftClient.scannerOpenWithScan(Maps.MockDomainObject.TableName.GetBytes(), A.Dummy<TScan>(), // new Dictionary<byte[], byte[]>())).Returns(1); var results = new List <TRowResult>() { BuildRow("test", 21, "some street", 1), BuildRow("Foo", 21, "some street", 1), }; A.CallTo(() => _thriftClient.scannerGetList(A.Dummy <int>(), A.Dummy <int>())).ReturnsLazily(() => results); A.CallTo(_thriftClient).WithReturnType <List <TRowResult> >().Returns(results); }
public FilterContextTest() { var configuration = new MockDomainObjectConfiguration(); _map = configuration.ExposeClassMap(); }
public QualifierFilterTest() { var configuration = new MockDomainObjectConfiguration(); _map = configuration.ExposeClassMap(); }
public SingleColumnValueFilterTest() { var config = new MockDomainObjectConfiguration(); _map = config.ExposeClassMap(); }
public ColumnPrefixFilterTest() { var configuration = new MockDomainObjectConfiguration(); _map = configuration.ExposeClassMap(); }