Пример #1
0
        public MainWindow()
        {
            InitializeComponent();
            try
            {
                var geldverleihUnityContainer = new GeldverleihUnityContainer();

                _kundenService             = geldverleihUnityContainer.UnityContainer.Resolve <IKundenService>();
                _zinssatzFactory           = geldverleihUnityContainer.UnityContainer.Resolve <IZinssatzFactory>();
                _kundenUebersichtPresenter = new KundenUebersichtPresenter(_kundenService);
                _zinsRechner   = geldverleihUnityContainer.UnityContainer.Resolve <IZinsRechner>();
                _bankPresenter = new BankPresenter(geldverleihUnityContainer.UnityContainer.Resolve <IBankService>(), _zinsRechner);

                KundenUebersichtAktualisieren();
            }
            catch (Exception exception)
            {
                FehlerLoggen(exception.Message);
            }
        }
Пример #2
0
        public MainWindow()
        {
            InitializeComponent();
            try
            {
                var geldverleihUnityContainer = new GeldverleihUnityContainer();

                _kundenService = geldverleihUnityContainer.UnityContainer.Resolve<IKundenService>();
                _zinssatzFactory = geldverleihUnityContainer.UnityContainer.Resolve<IZinssatzFactory>();
                _kundenUebersichtPresenter = new KundenUebersichtPresenter(_kundenService);
                _zinsRechner = geldverleihUnityContainer.UnityContainer.Resolve<IZinsRechner>();
                _bankPresenter = new BankPresenter(geldverleihUnityContainer.UnityContainer.Resolve<IBankService>(), _zinsRechner);

                KundenUebersichtAktualisieren();

            }
            catch (Exception exception)
            {
                FehlerLoggen(exception.Message);
            }
        }
Пример #3
0
 public BankPresenter(IBankService bankService, IZinsRechner zinsRechner)
 {
     _bankService = bankService;
     _zinsRechner = zinsRechner;
 }
Пример #4
0
 public BankPresenter(IBankService bankService, IZinsRechner zinsRechner)
 {
     _bankService = bankService;
     _zinsRechner = zinsRechner;
 }