public async Task GetProfessor_BadRequest() { var response = await ProfessorController.Get(null); var code = (StatusCodeResult)response.Result; Assert.AreEqual((int)HttpStatusCode.BadRequest, code.StatusCode); }
public async Task GetProfessor_ValidCall() { var response = await ProfessorController.Get(1); var code = ((ObjectResult)response.Result).StatusCode; Assert.AreEqual((int)HttpStatusCode.OK, code); }