public async Task ExecuteAsync_Given_ClientAndRequest_Returns_IRestResponseObject() { var baseUrl = "https://www.test.com"; var resource = "test/1"; var method = Method.GET; _restClientFactoryMock.Setup(x => x.Create(It.IsAny <string>())).Returns(new RestClient(baseUrl)).Verifiable(); _restRequestFactoryMock.Setup(x => x.Create(It.IsAny <string>(), It.IsAny <Method>())).Returns(new RestRequest("test/1", Method.GET)).Verifiable(); var result = await _service.ExecuteAsync(baseUrl, resource, method); result.Should().BeOfType <RestResponse>(); }