Beispiel #1
0
    public void CreateJobTest()
    {
      var job = new Job()
      {
        Id = Guid.NewGuid().ToString()
      };

      var jobRunId = Guid.NewGuid().ToString();

      _repository.AddJobRunStart( job.Id, jobRunId );

      // todo: check wether we created a job and a job run
      

    }
    internal Models.Job SaveJob(string jobId, string jobName)
    {
      var jobCollection = GetJobCollection();

      var job = new Job()
      {
        Id = jobId,
        Name = jobName,
        LatestRun = DateTime.UtcNow
      };

      jobCollection.Save(job);

      return job;
    }