using BusinessLogic.Classes.Cryptography; using BusinessLogic.Classes.Dependencies; using BusinessLogic.Classes.Smtp; using BusinessLogic.Classes.Strategies; using BusinessLogic.Enums; using BusinessLogic.ImportProcessing; using BusinessLogic.Interfaces.Dependencies; using BusinessLogic.Interfaces.Services; using BusinessLogic.Interfaces.Services.Cryptography; using BusinessLogic.Interfaces.Smtp; using BusinessLogic.Interfaces.Strategies; using BusinessLogic.Interfaces.Validators; using BusinessLogic.Services; using BusinessLogic.Suspense.JournalAllocation; using BusinessLogic.Validators; using BusinessLogic.Validators.Payment; using System; using System.Diagnostics.CodeAnalysis; using Unity; namespace BusinessLogic { [ExcludeFromCodeCoverage] public class UnityConfig { public static void RegisterComponents(IUnityContainer container) { container .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType() .RegisterType, AmountValidator>(nameof(AmountValidator)) .RegisterType, ReferenceLengthValidator>(nameof(ReferenceLengthValidator)) .RegisterType, CharacterTypeValidator>(nameof(CharacterTypeValidator)) .RegisterType, AccountExistsValidator>(nameof(AccountExistsValidator)) .RegisterType, InputMaskValidator>(nameof(InputMaskValidator)) .RegisterType, RegexValidator>(nameof(RegexValidator)) .RegisterFactory>>(c => new Func>(name => c.Resolve>(name))) .RegisterType(CheckDigitType.WeightedSum.ToString()) .RegisterType(CheckDigitType.DynixLibrary.ToString()) .RegisterFactory>(c => new Func(type => c.Resolve(type.ToString()))) .RegisterType() .RegisterType(ImportDataTypeEnum.Transaction.ToString()) .RegisterFactory>(c => new Func(name => { try { return c.Resolve(name); } catch { return null; } })) .RegisterType(ImportDataTypeEnum.Transaction.ToString()) .RegisterType(ImportDataTypeEnum.AccountHolder.ToString()) .RegisterFactory>(c => new Func(name => c.Resolve(name))) .RegisterType, TransactionImportProcessingStrategyValidator>(ImportDataTypeEnum.Transaction.ToString()) .RegisterType, AccountHolderImportProcessingStrategyValidator>(ImportDataTypeEnum.AccountHolder.ToString()) .RegisterFactory>>(c => new Func>(name => c.Resolve>(name))) ; } } }