public void GetTroubleshooterCategory(int troubleshooterCategoryId) { var apiMethod = string.Format("/Troubleshooter/Category/{0}", troubleshooterCategoryId); _kayakoApiRequest.Setup(x => x.ExecuteGet <TroubleshooterCategoryCollection>(apiMethod)).Returns(_responseTroubleshooterCategoryCollection); var troubleshooterCategory = _troubleshooterController.GetTroubleshooterCategory(troubleshooterCategoryId); _kayakoApiRequest.Verify(x => x.ExecuteGet <TroubleshooterCategoryCollection>(apiMethod), Times.Once()); Assert.That(troubleshooterCategory, Is.EqualTo(_responseTroubleshooterCategoryCollection.First())); }