public AsesorFormController(AsesorForm instance)
 {
     this.frmAsesor = instance;
     this.srvAsesor = SamsaraAppContext.Resolve <IAsesorService>();
     Assert.IsNotNull(this.srvAsesor);
     this.InitializeFormControls();
 }
Esempio n. 2
0
 public AsesorForm()
 {
     InitializeComponent();
     this.ctrlAsesorForm = new AsesorFormController(this);
     this.srvAsesor      = SamsaraAppContext.Resolve <IAsesorService>();
     Assert.IsNotNull(this.srvAsesor);
 }
 public OpportunityFormController(OpportunityForm instance)
 {
     this.frmOpportunity  = instance;
     this.srvOrganization = SamsaraAppContext.Resolve <IOrganizationService>();
     Assert.IsNotNull(this.srvOrganization);
     this.srvBidder = SamsaraAppContext.Resolve <IBidderService>();
     Assert.IsNotNull(this.srvBidder);
     this.srvDependency = SamsaraAppContext.Resolve <IDependencyService>();
     Assert.IsNotNull(this.srvDependency);
     this.srvEndUser = SamsaraAppContext.Resolve <IEndUserService>();
     Assert.IsNotNull(this.srvEndUser);
     this.srvAsesor = SamsaraAppContext.Resolve <IAsesorService>();
     Assert.IsNotNull(this.srvAsesor);
     this.srvTender = SamsaraAppContext.Resolve <ITenderService>();
     Assert.IsNotNull(this.srvTender);
     this.srvOpportunity = SamsaraAppContext.Resolve <IOpportunityService>();
     Assert.IsNotNull(this.srvOpportunity);
     this.srvOpportunityType = SamsaraAppContext.Resolve <IOpportunityTypeService>();
     Assert.IsNotNull(this.srvOpportunityType);
     this.srvOpportunityStatus = SamsaraAppContext.Resolve <IOpportunityStatusService>();
     Assert.IsNotNull(this.srvOpportunityStatus);
     this.srvManufacturer = SamsaraAppContext.Resolve <IManufacturerService>();
     Assert.IsNotNull(this.srvManufacturer);
     this.srvOpportunityLog = SamsaraAppContext.Resolve <IOpportunityLogService>();
     Assert.IsNotNull(this.srvOpportunityLog);
     this.InitializeFormControls();
 }
Esempio n. 4
0
 public AsesoresController(IAsesorService asesorService)
 {
     this.asesorService = asesorService;
 }