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)); } }
public LotController() { _repository = new LotRepository(); }