public async Task Shoud_Get_EcartType_In_CandidateService()
        {
            double ecartType = 2.6;

            var mockService = Substitute.For <ICandidatesService>();

            mockService.GetEcartTypeAsync().Returns(ecartType);
            var logger = Substitute.For <ILog>();
            var candidateController = new CandidatesController(mockService, logger);
            var result = await candidateController.GetEcartTypeAsync();

            var okResult = result as OkObjectResult;

            Assert.AreEqual(200, okResult.StatusCode);
        }