public void Get1Lot100TimesViaCouchbase()
        {
            LotRepository repo;
            Lot lot;
            for (int i = 0; i < 100; i++)
            {
                var start = DateTime.Now;
                repo = new LotRepository();
                lot = repo.GetLot();
                Console.WriteLine(String.Format("time to get lots: {0}", (DateTime.Now - start).TotalMilliseconds));
            }

        }
Пример #2
0
 public LotController()
 {
     _repository = new LotRepository();
 }