Пример #1
0
        public void CheckForUnImportedStaff()
        {
            var newstaff = DataProvider.ImportNewStaff();

            if (newstaff.Any())
            {
                MailClient.SendMessage <NewStaffMailFormatter>("New staff imported from old system", newstaff.Aggregate((x, y) => x + "|" + y));
            }
        }
Пример #2
0
        public void SendImportedRegisteredAccounts()
        {
            var newIdentifierMappings = DataProvider.GetNewFrequentUsersCreated();

            if (newIdentifierMappings.Any())
            {
                MailClient.SendMessage <NewStaffMailFormatter>("New registered users imported from old system", newIdentifierMappings.Aggregate((x, y) => x + "|" + y));
            }

            DataProvider.SetFrequentUserMappingAsReported(newIdentifierMappings);
        }
Пример #3
0
        public IETCTollTransaction Build(IETCTollTransaction entity)
        {
            if (entity.TransactionID.EndsWith("D"))
            {
                MailClient.SendMessage <DuplicateTransactionMailFormatter>("Duplicate etc transaction", "Duplicate etc transaction detected: " + entity.TransactionID);
            }

            entity.LicensePlate              = entity.ANPRLicensePlate;
            entity.ClassGUID                 = entity.AppliedClassGUID;
            entity.IssuerAuthenticatorGuid   = Guid.NewGuid();
            entity.OperatorAuthenticatorGuid = Guid.NewGuid();

            return(!entity.TransactionID.EndsWith("D") ? entity : null);
        }
Пример #4
0
        public ITollTransaction Build(ITollTransaction entity)
        {
            if (!string.IsNullOrEmpty(entity.PaymentDetail))
            {
                CardDetailBuilder.EncryptedPAN(ref entity);
            }

            if (entity.TransactionID.EndsWith("D"))
            {
                MailClient.SendMessage <DuplicateTransactionMailFormatter>("Duplicate transaction", "Duplicate transaction detected: " + entity.TransactionID);
                entity = null;
            }

            return(entity);
        }