Exemplo n.º 1
0
        public async Task ShouldSendCorrectRequestWhenGettingExercises()
        {
            //When
            await _sheetsService.GetExercises(new DateTime(2000, 1, 1));

            //Then
            Assert.Equal(HttpMethod.Get, _capturedRequest.Method);
            Assert.Equal("https://docs.google.com/spreadsheets/d/ExerciseSpreadsheetId/gviz/tq?tqx=out:csv&sheet=Sheet1", _capturedRequest.RequestUri.AbsoluteUri);
        }