public void Execute()
        {
            IDialog     dialog     = factory.CreateDialog();
            IClientView clientView = factory.CreateClientView();
            ILoanView   loanView   = factory.CreateLoanView();
            Client      client     = GetClient(dialog);
            Loan        loan       = GetLoan(dialog);

            client.Notify(loan.GetValues());

            loan.AddObserver(client);
        }
        public void Execute()
        {
            var arguments = new[] { "Id", "Name" };

            IDialog dialog = uiFactory.CreateDialog();
            var     input  = dialog.ShowDialog(arguments).ToArray();

            string id   = input[0];
            string name = input[1];

            Client client = factory.createClient(id, name);

            repository.Add(client);
            client.AddObserver(uiFactory.CreateClientView());
        }