Exemplo n.º 1
0
 protected override void TearDown()
 {
     var simplests = new SimplestsCollection();
     simplests.LoadAll();
     simplests.MarkAllAsDeleted();
     simplests.Save();
 }
Exemplo n.º 2
0
        protected override void TearDown()
        {
            var simplests = new SimplestsCollection();

            simplests.LoadAll();
            simplests.MarkAllAsDeleted();
            simplests.Save();
        }
Exemplo n.º 3
0
        protected override void DeleteMultipleTest()
        {
            var simplests = new SimplestsCollection();

            simplests.LoadAll();
            simplests.MarkAllAsDeleted();
            simplests.Save();
        }
Exemplo n.º 4
0
        protected override void UpdateMultipleTest()
        {
            var simplests = new SimplestsCollection();

            simplests.LoadAll();
            foreach (var o in simplests)
            {
                o.Value++;
            }
            simplests.Save();
        }
Exemplo n.º 5
0
 protected override void InsertMultipleTest(int count)
 {
   var simplests = new SimplestsCollection();
   for (int i = 0; i < count; i++) {
     var simplest = simplests.AddNew();
     simplest.Id = i;
     simplest.Value = i;
   }
   simplests.Save();
   InstanceCount = count;
 }
Exemplo n.º 6
0
        protected override void InsertMultipleTest(int count)
        {
            var simplests = new SimplestsCollection();

            for (int i = 0; i < count; i++)
            {
                var simplest = simplests.AddNew();
                simplest.Id    = i;
                simplest.Value = i;
            }
            simplests.Save();
            InstanceCount = count;
        }
Exemplo n.º 7
0
    protected override void Setup()
    {
      var conn = new esConnectionElement();
      conn.ConnectionString = @"Data Source=.;Initial Catalog=PerformanceTest;Integrated Security=True;Pooling=True;MultipleActiveResultSets = true";
      conn.Name = "PerformanceTest";
      conn.Provider = "EntitySpaces.SqlClientProvider";
      conn.ProviderClass = "DataProvider";
      conn.SqlAccessType = esSqlAccessType.DynamicSQL;
      conn.ProviderMetadataKey = "esDefault";
      conn.DatabaseVersion = "2005";

      esConfigSettings.ConnectionInfo.Connections.Add(conn);
      esConfigSettings.ConnectionInfo.Default = "PerformanceTest";

      esProviderFactory.Factory = new EntitySpaces.LoaderMT.esDataProviderFactory();
      var simplests = new SimplestsCollection();
      simplests.LoadAll();
      simplests.MarkAllAsDeleted();
      simplests.Save();
    }
Exemplo n.º 8
0
        protected override void Setup()
        {
            var conn = new esConnectionElement();

            conn.ConnectionString =
                @"Data Source=.;Initial Catalog=PerformanceTest;Integrated Security=True;Pooling=True;MultipleActiveResultSets = true";
            conn.Name                = "PerformanceTest";
            conn.Provider            = "EntitySpaces.SqlClientProvider";
            conn.ProviderClass       = "DataProvider";
            conn.SqlAccessType       = esSqlAccessType.DynamicSQL;
            conn.ProviderMetadataKey = "esDefault";
            conn.DatabaseVersion     = "2005";

            esConfigSettings.ConnectionInfo.Connections.Add(conn);
            esConfigSettings.ConnectionInfo.Default = "PerformanceTest";

            esProviderFactory.Factory = new EntitySpaces.LoaderMT.esDataProviderFactory();
            var simplests = new SimplestsCollection();

            simplests.LoadAll();
            simplests.MarkAllAsDeleted();
            simplests.Save();
        }
Exemplo n.º 9
0
 protected override void DeleteMultipleTest()
 {
     var simplests = new SimplestsCollection();
     simplests.LoadAll();
     simplests.MarkAllAsDeleted();
     simplests.Save();
 }
Exemplo n.º 10
0
 protected override void UpdateMultipleTest()
 {
     var simplests = new SimplestsCollection();
     simplests.LoadAll();
     foreach (var o in simplests)
         o.Value++;
     simplests.Save();
 }