Esempio n. 1
0
        public ScheduleTestsFixture(ApiServer apiServer)
        {
            ApiServer = apiServer;

            GenerateScheduleResponse = apiServer.Client.PostJson("/api/schedule/generate");

            GenerateScheduleResponse.ShouldBeHttpCreatedResult();

            GeneratedSchedules = GenerateScheduleResponse.Model <IEnumerable <Schedule> >().ToList();
        }
Esempio n. 2
0
 public PingTests(ApiServer apiServer)
 {
     this.apiServer = apiServer;
 }
Esempio n. 3
0
 public ScheduleTests(ScheduleTestsFixture fixture)
 {
     apiServer                = fixture.ApiServer;
     generatedSchedules       = fixture.GeneratedSchedules;
     generateScheduleResponse = fixture.GenerateScheduleResponse;
 }