public void GetById_Should_Return_Log_Item() { var result = _logController.GetById(2); var response = (result as OkObjectResult).Value as CustomApiResponse; Assert.IsTrue((result as OkObjectResult).StatusCode == 200); Assert.IsTrue((response.Result as Log).Id == 2); }