public void Can_Retrieve_All_Students() { endPoint = _baseUrl; headers.Add("content-type", "application/json"); var result = API_Helper.GetRequest(endPoint, headers); Assert.AreEqual(HttpStatusCode.OK, result.StatusCode); var fromAPI = JsonConvert.DeserializeObject <List <Student> >(result.Content).ToList(); var fromDB = _studentDbContext.Students.ToList(); Assert.IsTrue(API_Helper.Check3Spots(fromAPI, fromDB)); }