public void GetDozenByQuantity_Test() { lotoGolControllerTest = new LotoGolController(mockwebService.Object, mockRepo.Object, mockLog.Object, mockLotteryService.Object); var result = lotoGolControllerTest.GetDozenByQuantity(); Assert.IsType <OkObjectResult>(result.Result); }
public void GetDozenByQuantity_ThrowsException_Test() { mockRepo.Setup(m => m.GetAll()).Throws <Exception>(); lotoGolControllerTest = new LotoGolController(mockwebService.Object, mockRepo.Object, mockLog.Object, mockLotteryService.Object); var result = lotoGolControllerTest.GetDozenByQuantity(); Assert.IsType <NotFoundObjectResult>(result.Result); }