コード例 #1
0
        public void ValidateSuccessTest()
        {
            //******************* isCustomCMVTargets = false **************************
            CMVRequest request = new CMVRequest(projectId, null, callId, cmvSettings, liftSettings, null, 0, null, null, null);

            request.Validate();

            //******************* isCustomCMVTargets = true **************************
            request = new CMVRequest(projectId, null, callId, cmvSettingsEx, liftSettings, null, 0, null, null, null, true);
            request.Validate();
        }
コード例 #2
0
        public void ValidateFailMissingOverrideDatesTest()
        {
            //missing override end UTC
            //******************* isCustomCMVTargets = false **************************
            CMVRequest request = new CMVRequest(projectId, null, callId, cmvSettings, liftSettings, null, 0, new DateTime(2014, 1, 1), null, null);

            Assert.ThrowsException <ServiceException>(() => request.Validate());

            //******************* isCustomCMVTargets = true **************************
            request = new CMVRequest(projectId, null, callId, cmvSettingsEx, liftSettings, null, 0, new DateTime(2014, 1, 1), null, null, true);
            Assert.ThrowsException <ServiceException>(() => request.Validate());
        }
コード例 #3
0
        public async Task <CMVDetailedResult> PostExportDetailedCmvTbc([FromBody] CMVRequest request)
        {
            _log.LogDebug($"{nameof(PostExportDetailedCmvTbc)}: {JsonConvert.SerializeObject(request)}");

            request.Validate();
            return(await RequestExecutorContainerFactory.Build <DetailedCMVExecutor>(_logger,
#if RAPTOR
                                                                                     raptorClient,
#endif
                                                                                     configStore : configStore, trexCompactionDataProxy : tRexCompactionDataProxy,
                                                                                     fileImportProxy : FileImportProxy, customHeaders : CustomHeaders, userId : GetUserId())
                   .ProcessAsync(request) as CMVDetailedResult);
        }