public async Task Scenario() { await SessionFactoryHelper.ExecAsync(session => { session.Save(new DataItem()); RemoteGroupingStressHelper.Run(session.Query <DataItem>()); }); }
public void Scenario() { SessionFactoryHelper.Exec(session => { session.Save(new DataItem()); RemoteGroupingStressHelper.Run(session.Query <DataItem>()); }); }
public async Task Scenario() { await UnitOfWorkHelper.ExecAsync(uow => { new DataItem(uow); uow.CommitChanges(); RemoteGroupingStressHelper.Run(uow.Query <DataItem>()); }); }
public void Scenario() { UnitOfWorkHelper.Exec(uow => { new DataItem(uow); uow.CommitChanges(); RemoteGroupingStressHelper.Run(uow.Query <DataItem>()); }); }
public void Scenario() { SessionFactoryHelper.Exec(session => { session.Save(new DataItem()); Assert.Null(Record.Exception(delegate { RemoteGroupingStressHelper.Run(session.Query <DataItem>()); })); }); }
public void Scenario() { UnitOfWorkHelper.Exec(uow => { new DataItem(uow); uow.CommitChanges(); Assert.Null(Record.Exception(delegate { RemoteGroupingStressHelper.Run(uow.Query <DataItem>()); })); }); }
public void Scenario() { TestDbContext.Exec(context => { var dbSet = context.Set <DataItem>(); dbSet.Add(new DataItem()); context.SaveChanges(); RemoteGroupingStressHelper.Run(dbSet); }); }
public void Scenario() { TestDataContext.Exec(context => { var table = context.RemoteGroupingStress_DataItems; table.InsertOnSubmit(new DataItem()); context.SubmitChanges(); RemoteGroupingStressHelper.Run(table); }); }
public void Scenario() { TestDbContext.Exec(context => { var dbSet = context.Set <DataItem>(); dbSet.Add(new DataItem()); context.SaveChanges(); Assert.Null(Record.Exception(delegate { RemoteGroupingStressHelper.Run(dbSet); })); }); }