public ScheduleTestsFixture(ApiServer apiServer) { ApiServer = apiServer; GenerateScheduleResponse = apiServer.Client.PostJson("/api/schedule/generate"); GenerateScheduleResponse.ShouldBeHttpCreatedResult(); GeneratedSchedules = GenerateScheduleResponse.Model <IEnumerable <Schedule> >().ToList(); }
public PingTests(ApiServer apiServer) { this.apiServer = apiServer; }
public ScheduleTests(ScheduleTestsFixture fixture) { apiServer = fixture.ApiServer; generatedSchedules = fixture.GeneratedSchedules; generateScheduleResponse = fixture.GenerateScheduleResponse; }