public void GivenPhotoAlbumApiService_WhenGetPhotosIsCalled_ThenRestClientExecuteIsCalled_WithRestRequest() { //arrange var request = GetRestRequest(_photoResourceUrl, Method.GET); _restRequest.Stub(x => x.CreateRequest(_photoResourceUrl, Method.GET)).Return(request); //act var result = _apiService.GetPhotos(); //assert _restClient.AssertWasCalled(x => x.Execute <List <Photo> >(request)); }