public async Task SpeedServerApiEmptyTrackStatusBadRequest() { var responseMessage = await SpeedServerService.PostSpeedServerApiGetResponse(null); responseMessage.StatusCode.Should().Be(HttpStatusCode.BadRequest); responseMessage.GetContentAs <string>().Should().Be("Track is empty"); }
public async Task SpeedServerApiPointsWithEmptyLocationStatusBadRequest() { var snappedPointsArrayRequest = SnappedPointsRequestStorage.TestSnappedPointRequestArray; snappedPointsArrayRequest[0].Location = null; var responseMessage = await SpeedServerService.PostSpeedServerApiGetResponse(snappedPointsArrayRequest); responseMessage.StatusCode.Should().Be(HttpStatusCode.BadRequest); responseMessage.GetContentAs <string>().Should().Be("Location cannot be null"); }
public async Task SpeedServerApiValidTrackStatusOk() { var responseMessage = await SpeedServerService.PostSpeedServerApiGetResponse(SnappedPointsRequestStorage.TestSnappedPointRequestArray); responseMessage.StatusCode.Should().Be(HttpStatusCode.OK); }