public void Put_WhenOkEvent_ReturnsOk() { EventLog temp = _service.Salvar(new EventLog() { Level = "ERROR", Title = "development.StaticOperation.Service: <failed>", CollectedBy = "yvqnygr3i1xl47wanrg2", Log = "IOException", Description = "It is thrown when an input-output operation failed or interrupted", Origin = "app.server.com.br", Environment = "Development", CreatedDate = new DateTime(2008, 5, 1, 8, 30, 52) } ); var _event = _service.Atualizar(temp.EventID, temp); if (_event != null) { var okResult = _controller.Put(temp.EventID, temp); Assert.IsType <OkObjectResult>(okResult.Result); } }