public void PutSchoolByID_ReturnsHttpOkResult(int id) { School school = _schoolDetails.Result.Where(s => s.SchoolId == id).First(); UpdateSchoolDto detailSchool = SchoolAutoMapper.Mapper().Map <UpdateSchoolDto>(school); detailSchool.SchoolName = "Test Modified"; var result = _schoolController.Put(school.SchoolId, detailSchool); Assert.IsInstanceOf <OkObjectResult>(result); }