Пример #1
0
        public async Task TestMethod1Async()
        {
            BOSEntity ent = new BOSEntity()
            {
                Id = 10
            };
            IProcessor processor = _factory.GetJarsProcessor <IProcessor>(ent.GetType().Name);

            if (processor is BOSEntityAppointmentProcessor proc)
            {
                //BOSEntityAppointmentProcessor proc = new BOSEntityAppointmentProcessor();
                await proc.LoadOrRefreshEntityDataAsync();

                var list = proc.DataList;
            }
        }
Пример #2
0
        public void Generate_generic_parameter_type_from_type()
        {
            IEntityBase ent = new StandardAppointment()
            {
                Id = 10
            };

            IProcessor processor = _factory.GetJarsProcessor <IProcessor>(ent.GetType().Name);

            if (processor is IProcessorForShowAppointmentForm)
            {
                Assert.IsTrue(true);
            }

            if (processor is IProcessorForAppointmentEvents)
            {
                Assert.IsTrue(true);
            }

            if (processor is IProcessorForEventServiceCommandReceived)
            {
                Assert.IsTrue(true);
            }
        }