Ignore:
Timestamp:
12/11/08 16:50:12 (12 years ago)
Author:
svonolfe
Message:

Added Job Adapter (#372)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Server.Core/DbTestApp.cs

    r965 r971  
    170170      client.Name = "Stefan";
    171171      client.ClientId = Guid.NewGuid();
     172      client.Login = DateTime.Now;
    172173
    173174      ClientInfo client2 =
     
    175176      client2.Name = "Martin";
    176177      client2.ClientId = Guid.NewGuid();
     178      client2.Login = DateTime.Now;
    177179
    178180      ClientInfo client3 =
     
    180182      client3.Name = "Heinz";
    181183      client3.ClientId = Guid.NewGuid();
     184      client3.Login = DateTime.Now;
    182185
    183186      ClientGroup group =
     
    223226      clientAdapter.DeleteClient(client);
    224227      clientAdapter.DeleteClient(client2);
     228    }
     229
     230    private void TestJobAdapter() {
     231      IJobAdapter jobAdapter = ServiceLocator.GetJobAdapter();
     232
     233      Job job = new Job();
     234
     235      ClientInfo client = new ClientInfo();
     236      client.ClientId = Guid.NewGuid();
     237      client.Login = DateTime.Now;
     238
     239      job.Client = client;
     240      jobAdapter.UpdateJob(job);
     241
     242      ICollection<Job> jobs = jobAdapter.GetAllJobs();
     243
     244      jobAdapter.DeleteJob(job);
     245
     246      jobs = jobAdapter.GetAllJobs();
    225247    }
    226248
     
    230252      TestUserGroupAdapter();
    231253      TestClientGroupAdapter();
     254      TestJobAdapter();
    232255
    233256      ITransactionManager transactionManager =
Note: See TracChangeset for help on using the changeset viewer.