Free cookie consent management tool by TermsFeed Policy Generator

Changeset 1934 for trunk


Ignore:
Timestamp:
05/28/09 17:17:55 (16 years ago)
Author:
msteinbi
Message:

dummy implementation of getallprojects just for testing (#599)

File:
1 edited

Legend:

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

    r1932 r1934  
    356356
    357357    public ResponseList<Project> GetAllProjects() {
    358       throw new NotImplementedException();
     358      IList<Project> testList = new List<Project>();
     359
     360      Project p1 = new Project();
     361      p1.Id = Guid.NewGuid();
     362      p1.Name = "TestProject1";
     363      Project p2 = new Project();
     364      p2.Id = Guid.NewGuid();
     365      p2.Name = "TestProject2";
     366      Project p3 = new Project();
     367      p3.Id = Guid.NewGuid();
     368      p3.Name = "TestProject3";
     369      Project p4 = new Project();
     370      p4.Id = Guid.NewGuid();
     371      p4.Name = "TestProject4";
     372      testList.Add(p1);
     373      testList.Add(p2);
     374      testList.Add(p3);
     375      testList.Add(p4);
     376
     377      ResponseList<Project> response = new ResponseList<Project>();
     378      response.List = testList;
     379      response.Success = true;
     380
     381      return response;
    359382    }
    360383
Note: See TracChangeset for help on using the changeset viewer.