예제 #1
0
파일: Program.cs 프로젝트: berczeck/.Net
        private static void Main(string[] args)
        {
            var listCobro = new Dictionary<Type, ICobroRegistro>
            {
                {typeof (PersonaNatural), new CobroRegistroPersonaNatural()},
                {typeof (PersonaJuridica), new CobroRegistroPersonaJuridica()}
            };

            var flujo = new FlujoCobro(new PersonaJuridica()) {ListaCobros = listCobro};

            flujo.RelizarCobro();
        }
예제 #2
0
        private static void Main(string[] args)
        {
            var listCobro = new Dictionary <Type, ICobroRegistro>
            {
                { typeof(PersonaNatural), new CobroRegistroPersonaNatural() },
                { typeof(PersonaJuridica), new CobroRegistroPersonaJuridica() }
            };

            var flujo = new FlujoCobro(new PersonaJuridica())
            {
                ListaCobros = listCobro
            };

            flujo.RelizarCobro();
        }