Anyone write code to test multiple api's in a unit test? I would like to be able to generate a dynamic proxy file from the current api version and test what I can get back from their api and wrap that in an interface we will call, IMapApi. I have some mock
code to start if anyone could help me connect the dots to return an object from their api proxy class?
[TestMethod]
public void CreateCompanyGetMap()
{
// create test company
ICompany company = new Company();
company.ZipCode = 49858;
company.Name = "Jacobs Gaming";
company.StateId = 49;
ILatLong latLong = new LatLong();
latLong.Latitude = 234.12;
latLong.Longitude = -123.23;
var mockZipCoder = new Mock<IZipCodeFinderService>();
//setup service mock
mockZipCoder.Setup(f => f.FindLatLong(company)).Returns(latLong); ...
Go to the complete details ...