Beispiel #1
0
 public void Consume(Product product)
 {
     /* The logic that needs for ParamA of SpecificProductA is now
      * pushed into the Visitor. */
     var productAVisitor = new SpecificProductAVisitor();
     ICommonInterface commonInterfaceWithParamA = product.GetCommonInterface(productAVisitor);
 }
 //添加监视者
 public static void AddObserver(ICommonInterface Observer)
 {
     if (ObserverList.Contains(Observer))
     {
         return;
     }
     ObserverList.Add(Observer);
 }
Beispiel #3
0
 public ServicioService(IEntityBaseRepository <Movimiento> movimientoRepositorio, IEntityBaseRepository <Servicio> servicioRepositorio, ICommonInterface <Direccion> direccionService,
                        ICommonInterface <Asegurado> aseguradoService, ICommonInterface <Vehiculo> vehiculoService,
                        ICorreoService correoService,
                        IEntityBaseRepository <Direccion> direccionRepositorio,
                        IEntityBaseRepository <Sucursal> sucursalRepositorio,
                        IEntityBaseRepository <TipoServicio> tipoServicioRepositorio,
                        IEntityBaseRepository <Conductor> conductorRepositorio,
                        IEntityBaseRepository <Seguimiento> seguimientoRepositorio,
                        IUnitOfWork unitOfWork)
 {
     _direccionRepositorio        = direccionRepositorio;
     _sucursalRepositorio         = sucursalRepositorio;
     _tipoServicioRepositorio     = tipoServicioRepositorio;
     _conductorRepositorio        = conductorRepositorio;
     this._seguimientoRepositorio = seguimientoRepositorio;
     _servicioRepositorio         = servicioRepositorio;
     _movimientoRepositorio       = movimientoRepositorio;
     _direccionService            = direccionService;
     _aseguradoService            = aseguradoService;
     _vehiculoService             = vehiculoService;
     _correoService = correoService;
     _unitOfWork    = unitOfWork;
 }
 public AseguradoraController(ICommonInterface<Aseguradora> aseguradoraSevice)
 {
     _aseguradoraSevice = aseguradoraSevice;
 }
 public RolesController(ICommonInterface<Sucursal> sucursalSevice, IRolService rolService)
 {
     _rolService = rolService;
 }
 public ServicioController(ICommonInterface<Servicio> servicioService, ICommonInterface<Seguimiento> seguimientoService, IServicioService servicioServiceExt)
 {
     _servicioService = servicioService;
     _servicioServiceExt = servicioServiceExt;
     _seguimientoService = seguimientoService;
 }
 public Tweet(IBrowserComponent browserComponent, INotificationInterface notificationInterface, ICommonInterface commonInterface, PluginManager pluginManager) : this(browserComponent, notificationInterface, commonInterface, pluginManager, browser => CreateSetupObject(browser, notificationInterface))
 {
 }
Beispiel #8
0
 public Example(IBrowserComponent browserComponent, INotificationInterface notificationInterface, ICommonInterface commonInterface, PluginManager pluginManager) : base(browserComponent, notificationInterface, commonInterface, pluginManager, CreateSetupObject)
 {
 }
Beispiel #9
0
 public NotificationBridgeObject(INotificationInterface notificationInterface, ICommonInterface commonInterface) : base(commonInterface)
 {
     this.i = notificationInterface;
 }
            protected Tweet(IBrowserComponent browserComponent, INotificationInterface notificationInterface, ICommonInterface commonInterface, PluginManager pluginManager, Func <NotificationBrowser, BrowserSetup> setup) : base(browserComponent, setup)
            {
                this.browserComponent.PageLoadEnd += BrowserComponentOnPageLoadEnd;
                this.browserComponent.AttachBridgeObject("$TD", new NotificationBridgeObject(notificationInterface, commonInterface));

                this.notificationInterface = notificationInterface;
                this.pluginManager         = pluginManager;
                this.pluginManager.Register(PluginEnvironment.Notification, browserComponent);
            }
Beispiel #11
0
 public CiudadesController(ICommonInterface <Ciudad> ciudadSevice, ICiudadService ciudadServiceExt)
 {
     _ciudadSevice     = ciudadSevice;
     _ciudadServiceExt = ciudadServiceExt;
 }
Beispiel #12
0
 public HomeController(Lazy <IInterface> method, ICommonInterface <IWTypeClass, IInterface> commonInterface)
 {
     this.method          = method;
     this.commonInterface = commonInterface;
 }
Beispiel #13
0
 public UsuariosController(ICommonInterface <Sucursal> sucursalSevice, IUsuarioService usuarioService)
 {
     _usuarioService = usuarioService;
 }
 public CiudadesController(ICommonInterface<Ciudad> ciudadSevice, ICiudadService ciudadServiceExt)
 {
     _ciudadSevice = ciudadSevice;
     _ciudadServiceExt = ciudadServiceExt;
 }
Beispiel #15
0
 protected CommonBridge(ICommonInterface i)
 {
     this.i = i;
 }
Beispiel #16
0
 public AseguradoraController(ICommonInterface <Aseguradora> aseguradoraSevice)
 {
     _aseguradoraSevice = aseguradoraSevice;
 }
Beispiel #17
0
 public SucursalesController(ICommonInterface <Sucursal> sucursalSevice, ISucursalService sucursalSeviceExt)
 {
     _sucursalSevice     = sucursalSevice;
     _sucursalServiceExt = sucursalSeviceExt;
 }
Beispiel #18
0
 public SeguimientosController(ICommonInterface <Seguimiento> seguimientoService, ISeguimientoService seguimientoServiceExtend, IServicioService servicioServiceExt)
 {
     _seguimientoService       = seguimientoService;
     _seguimientoServiceExtend = seguimientoServiceExtend;
     _servicioServiceExt       = servicioServiceExt;
 }
Beispiel #19
0
 public RolesController(ICommonInterface <Sucursal> sucursalSevice, IRolService rolService)
 {
     _rolService = rolService;
 }
Beispiel #20
0
 public EstadosController(ICommonInterface <Estado> estadoService)
 {
     _estadoService = estadoService;
 }
 public UsuariosController(ICommonInterface<Sucursal> sucursalSevice, IUsuarioService usuarioService)
 {
     _usuarioService = usuarioService;
 }
 public SucursalesController(ICommonInterface<Sucursal> sucursalSevice, ISucursalService sucursalSeviceExt)
 {
     _sucursalSevice = sucursalSevice;
     _sucursalServiceExt = sucursalSeviceExt;
 }
 public EstadosController(ICommonInterface<Estado> estadoService)
 {
     _estadoService = estadoService;
 }