public void GetProviderByCredential_Success() { // Act var response = controller.GetProviderByCredential(credentialId); // Assert Assert.IsTrue(response != null, "Response can't be null"); Assert.IsTrue(response.DataItems != null, "Data items can't be null"); Assert.IsTrue(response.DataItems.Count > 0, "Atleast one provider must exists."); }