static void Main(string[] args) { var httpCommunication = new HttpComm(); var response = httpCommunication.Execute(UrlList.PetsUrl, null, "GET", "application/json", typeof(List <Person>)); if (!(response is List <Person>)) { Console.WriteLine($"Response is not of desired type!"); } var typedResponse = ((List <Person>)response).ToList(); DataManip dataManip = new DataManip(); dataManip.GetAllCats(typedResponse, true); Console.WriteLine("press any key..."); Console.ReadKey(); }
public void TestDataConsistency() { var response = httpCommunication.Execute(UrlList.PetsUrl, null, "GET", "application/json", typeof(List <Person>)); Assert.IsTrue(CheckTypeAndData(response)); }