Aspectacular.Test.PerfTest.CallPerfDbContextAugmented C# (CSharp) Method

CallPerfDbContextAugmented() private method

private CallPerfDbContextAugmented ( ) : void
return void
        public void CallPerfDbContextAugmented()
        {
            long runsPerSec;

            using(var db = new AdventureWorksLT2008R2Entities())
            {
                db.Configuration.LazyLoadingEnabled = false;

                runsPerSec = RunCounter.SpinPerSec(MillisecToRun, () =>
                    db.GetProxy().List(inst => inst.QueryCustomerAddressesByCustomerID(customerIdWithManyAddresses))
                    );
            }
            this.TestContext.WriteLine("db.QueryCustomerAddressesByCustomerID(customerIdWithManyAddresses) augmented sequential base line test result: {0} calls/second.", runsPerSec);
        }