public void GetAllLoteries_Test()
        {
            lotecaControllerTest = new LotecaController(mockwebService.Object, mockRepo.Object, mockLog.Object, mockLotteryService.Object);

            var result = lotecaControllerTest.GetResults();

            Assert.IsType <OkObjectResult>(result.Result);
        }
        public void GetAllLoteries_ThrowsException_Test()
        {
            mockRepo.Setup(m => m.GetAll()).Throws <Exception>();
            lotecaControllerTest = new LotecaController(mockwebService.Object, mockRepo.Object, mockLog.Object, mockLotteryService.Object);

            var result = lotecaControllerTest.GetResults();

            Assert.IsType <NotFoundObjectResult>(result.Result);
        }