public BalanceDateEditorViewModel(
                 IBankAccountRepository bankAccountRepository,
                 IBalanceDateRepository balanceDateRepository,
                 BalanceDate entity
                 )
 {
     this.bankAccountRepository = bankAccountRepository;
     this.balanceDateRepository = balanceDateRepository;
     this.entity = entity;
 }
 public BalanceDateAgent(
                 IBalanceDateRepository balanceDateRepository,
                 IDialogService dialogService,
                 IBalanceDateEditorViewModelFactory bankEditorViewModelFactory
                 )
 {
     this.balanceDateRepository = balanceDateRepository;
     this.dialogService = dialogService;
     this.balanceDateEditorViewModelFactory = bankEditorViewModelFactory;
 }
        public void Initialize()
        {
            repository = container.Resolve<IBalanceDateRepository>();

            balanceDateFactory = container.Resolve<IBalanceDateFactory>();

            testEntity = balanceDateFactory.Create();

            testEntity.DateOfBalance = DateTime.Today;
            testEntity.BalanceDateBankAccounts.AddRange(new List<Core.Entities.BalanceDateBankAccount>()
            {
                    new Core.Entities.BalanceDateBankAccount()
                    {
                        BankAccount = new Core.Entities.BankAccount() { BankAccountId=1 },
                        BalanceAmount = 123
                    },
                    new Core.Entities.BalanceDateBankAccount()
                    {
                        BankAccount = new Core.Entities.BankAccount() { BankAccountId=2 },
                        BalanceAmount = 456
                    },
            });
        }