public void GetUsers_ReturnsUserList_AndCaches() { var user1 = new User { Id = "U1" }; var user2 = new User { Id = "U2" }; _api.Users.List().Returns(new UserListResponse { Members = { user1, user2 } }); _sut.GetUsers() .ShouldComplete() .And.ShouldMatch(new[] { user1, user2 }); _sut.GetUsers() .ShouldComplete() .And.ShouldMatch(new[] { user1, user2 }); _api.Users.Received(1).List(); }