public void Initialize()
        {
            repository = container.Resolve<ITransferRepository>();

            transferFactory = container.Resolve<ITransferFactory>();

            testEntity = transferFactory.Create();

            testEntity.Name = "xfer-" + Guid.NewGuid().ToString();
            testEntity.Amount = 123;
            testEntity.AmountTolerence = 0.5M;
            testEntity.Schedule.StartDate = DateTime.Now.Date;
            testEntity.Schedule.EndDate = DateTime.Now.AddDays(30).Date;
            testEntity.Schedule.Frequency = "Monthly";
            testEntity.IsEnabled = true;
            testEntity.FromBankAccount = new Core.Entities.BankAccount()
            {
                BankAccountId = 1
            };
            testEntity.ToBankAccount = new Core.Entities.BankAccount()
            {
                BankAccountId = 2
            };
            testEntity.Category = new Core.Entities.TransferCategory()
            {
                TransferCategoryId = 1
            };
        }
        public void Initialize()
        {
            repository = container.Resolve <ITransferRepository>();

            transferFactory = container.Resolve <ITransferFactory>();

            testEntity = transferFactory.Create();

            testEntity.Name               = "xfer-" + Guid.NewGuid().ToString();
            testEntity.Amount             = 123;
            testEntity.AmountTolerence    = 0.5M;
            testEntity.Schedule.StartDate = DateTime.Now.Date;
            testEntity.Schedule.EndDate   = DateTime.Now.AddDays(30).Date;
            testEntity.Schedule.Frequency = "Monthly";
            testEntity.IsEnabled          = true;
            testEntity.FromBankAccount    = new Core.Entities.BankAccount()
            {
                BankAccountId = 1
            };
            testEntity.ToBankAccount = new Core.Entities.BankAccount()
            {
                BankAccountId = 2
            };
            testEntity.Category = new Core.Entities.TransferCategory()
            {
                TransferCategoryId = 1
            };
        }
Example #3
0
 public TransferAgent(
     ITransferRepository transferRepository,
     IDialogService dialogService,
     ITransferEditorViewModelFactory bankEditorViewModelFactory,
     ITransferFactory transferFactory
     )
 {
     this.transferRepository             = transferRepository;
     this.dialogService                  = dialogService;
     this.transferEditorViewModelFactory = bankEditorViewModelFactory;
     this.transferFactory                = transferFactory;
 }
Example #4
0
 public TransferAgent(
                 ITransferRepository transferRepository,
                 IDialogService dialogService,
                 ITransferEditorViewModelFactory bankEditorViewModelFactory,
                 ITransferFactory transferFactory
                 )
 {
     this.transferRepository = transferRepository;
     this.dialogService = dialogService;
     this.transferEditorViewModelFactory = bankEditorViewModelFactory;
     this.transferFactory = transferFactory;
 }
Example #5
0
 public TransferMappings(ITransferFactory transferFactory)
 {
     this.transferFactory = transferFactory;
 }
 public TransferMappings(ITransferFactory transferFactory)
 {
     this.transferFactory = transferFactory;
 }