コード例 #1
0
        private void WhenThereIsAvalidJsonResponseForAllSessions()
        {
            var json            = DomainData.AllSessionsJson();
            var responseMessage = new HttpResponseMessage();

            responseMessage.Content = new StringContent(json);

            _mockHttpClient.Setup(h => h.GetAsync(It.IsAny <string>())).Returns(Task.FromResult(responseMessage));
        }