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()); }