Exemplo n.º 1
0
        public void TestDateStartAnticipationOk()
        {
            var anticipation = _anticipationService.Start(new Guid("D7484DEE-AB6F-488B-08FE-08D8750151B6"));

            Assert.NotNull(anticipation.AnalysisStartDate);
            Assert.AreEqual(DateTime.Now.Date, anticipation.AnalysisStartDate.Value.Date);
        }
 public ActionResult <Anticipation> Start(Guid anticipationId)
 {
     try
     {
         return(_anticipationService.Start(anticipationId));
     }
     catch (ForbiddenException n)
     {
         return(Forbid(n.Message));
     }
     catch (NotFoundException n)
     {
         return(NotFound(n.Message));
     }
 }