Exemple #1
0
        public EFilingRequest GetEFilingRequest(string filingRequestUID)
        {
            Assertion.AssertObject(filingRequestUID, "filingRequestUID");

            var filingRequest = EFilingRequest.TryParse(filingRequestUID);

            Assertion.AssertObject(filingRequest, $"Invalid filing request with UID {filingRequestUID}.");

            return(filingRequest);
        }
Exemple #2
0
        private async Task ChangeTransactionStatus(string filingRequestUID, string eventName)
        {
            var filingRequest = EFilingRequest.TryParse(filingRequestUID);

            Assertion.AssertObject(filingRequest, $"Invalid filing request with UID {filingRequestUID}.");

            var interactor = new EFilingExternalServicesInteractor(filingRequest);

            interactor.InformEventProcessed(filingRequest.Transaction.UID, eventName);

            RequestStatus newStatus = GetNewStatusAfterEvent(eventName);

            await filingRequest.UpdateStatus(newStatus);

            filingRequest.Save();
        }