Exemplo n.º 1
0
        public List <Customer> LoadMany()
        {
            var result = transaction.Load <Customer>(allIdsRandomlySorted.Take(NumberToLoad));

            if (result.Count != NumberToLoad)
            {
                throw new Exception();
            }
            return(result);
        }
Exemplo n.º 2
0
        public BigObject Load()
        {
            var item = readTransaction.Load <BigObject>("BigObject-1");

            if (item.Id != "BigObject-1" || item.History.Count == 0)
            {
                throw new Exception("Incorrect results");
            }
            return(item);
        }