public SubmissionController(IProviderService _providerService1, IProviderApplicationService _providerApplicationService1, IProcessControlService _processControlService1, IFormDataService _formDataService1, IClassroomInstructorService _classroomInstructorService1) { this._providerService1 = _providerService1; this._providerApplicationService1 = _providerApplicationService1; this._processControlService1 = _processControlService1; this._formDataService1 = _formDataService1; this._classroomInstructorService1 = _classroomInstructorService1; }
/// <summary> /// Initializes a new instance of the <see cref="SubmissionController" /> class. /// </summary> /// <param name="providerService">The provider service.</param> /// <param name="providerApplicationService">The provider application service.</param> /// <param name="processControlService">The process control service.</param> /// <param name="formDataService">The form data service.</param> /// <param name="classroomInstructorService">The classroom instructor service.</param> /// <param name="providerProfileExtraService">The provider profile extra service.</param> /// <param name="commentService">The comment service.</param> /// <param name="providerSelectionService">The provider selection service.</param> public SubmissionController(IProviderService providerService, IProviderApplicationService providerApplicationService, IProcessControlService processControlService, IFormDataService formDataService, IClassroomInstructorService classroomInstructorService, IProviderProfileExtraService providerProfileExtraService, ICommentService commentService, IProviderSelectionService providerSelectionService) { this._providerService = providerService; this._providerApplicationService = providerApplicationService; this._processControlService = processControlService; this._formDataService = formDataService; this._classroomInstructorService = classroomInstructorService; this._providerProfileExtraService = providerProfileExtraService; this._commentService = commentService; this._providerSelectionService = providerSelectionService; }
public FormService(List <IBaseBeforeAddingEntityLogic> baseBeforeAddingEntityLogics, List <BaseAfterAddingEntityLogic> baseAfterAddingEntityLogics, List <IBaseAfterUpdatingEntityLogic> baseAfterUpdateEntityLogics, List <IBaseBeforeUpdatingEntityLogic> baseBeforeUpdateEntityLogics, List <IBaseBeforeDeleteEntityLogic> baseBeforeDeleteEntityLogics, List <BaseAfterDeleteEntityLogic> baseAfterDeleteEntityLogics, IIdentityManager identityManager, IRestrictedItemAccessManager accessManager, IFormDataService dataSrv, IFormSchemeDataService formSchemeDataService, CustomFieldFactoryProvider <JObject> fieldFactoryPrvider, IFileManager fileManager) : base( baseBeforeAddingEntityLogics, baseAfterAddingEntityLogics, baseAfterUpdateEntityLogics, baseBeforeUpdateEntityLogics, baseBeforeDeleteEntityLogics, baseAfterDeleteEntityLogics, identityManager, accessManager, dataSrv) { _formDataSrv = dataSrv; _formSchemeDataService = formSchemeDataService; _fieldFactoryPrvider = fieldFactoryPrvider; _fileManager = fileManager; _formsBaseFolderPath = AppDomain.CurrentDomain.BaseDirectory + SettingHelper.UploadsBasePath + "Forms"; }
/// <summary> /// Creates a new <see cref="Startup"/> object /// </summary> /// <param name="env"></param> public Startup(IHostingEnvironment env) { IConfigurationBuilder builder = new ConfigurationBuilder() .SetBasePath(env.ContentRootPath) .AddJsonFile("appsettings.json", optional: true, reloadOnChange: true) .AddJsonFile($"appsettings.{env.EnvironmentName}.json", optional: true) .AddEnvironmentVariables(); Configuration = builder.Build(); _formDataService = new FormDataService(); FeedingTimes feedingTimes = _formDataService.GetFeedingTimes(); _pinController = new AquaPinController(feedingTimes.Feedings, feedingTimes.Pinches); TankSpecs tankSpecs = _formDataService.GetTankSpecs(); _i2CController = new AquaI2CController(tankSpecs.Width, tankSpecs.Height, tankSpecs.Depth); _pinMasterController = new PinMasterController(_i2CController, _pinController, tankSpecs.WaterChangeTime); }
/// <summary> /// Constructs a new <see cref="FeedingController"/> /// </summary> /// <param name="formDataService"></param> public FeedingController(IFormDataService formDataService, IAquaPinController aquaPinController) { _formDataService = formDataService; _aquaPinController = aquaPinController; }
/// <summary> /// Constructs a new /// </summary> /// <param name="formDataService"></param> public TankController(IFormDataService formDataService, IAquaI2CController aquaI2CController, IPinMasterController pinMasterController) { _formDataService = formDataService; _aquaI2CController = aquaI2CController; _pinMasterController = pinMasterController; }
public static void SeedData(IFormDataService formDataService) { Claim claim = new Claim { ClaimNumber = "12346-CSF", ClientID = "CL-333", DateOfEvent = DateTime.Now, ScopeOfWork = null, TypeOfLocation = ClaimLocationType.COMMERCIAL, TypeOfClaim = ClaimType.ELECTRICAL }; ContactInfo primaryContact = new ContactInfo { FirstName = "John", LastName = "Doe", Email = "*****@*****.**", Phone = "418-555-5555" }; ContactInfo insuredPerson = new ContactInfo { FirstName = "Jane", LastName = "Doe", Email = "*****@*****.**", Phone = "123-456-6666" }; Client client = new Client { ClientID = "CL-333", CompanyName = "SSQ", OtherContact = null, PrimaryContact = primaryContact }; Document document = new Document { DocumentContent = null, DocumentName = "testDoc456", DocumentPath = "C//Users//Documents//" }; InsuredEntity insuredEntity = new InsuredEntity { InsuredContactInfo = insuredPerson }; InvestigationProject project = new InvestigationProject { ProjectClaim = claim, ProjectClient = client, ProjectID = "TestID-1123456", ProjectInsuredEntity = insuredEntity, ProjectLocationType = claim.TypeOfLocation, ProjectType = claim.TypeOfClaim, ProjectStatus = ProjectStatus.PENDING }; project.ProjectDocuments.Add(document); formDataService.AddProject(project); }
public FormDataController(IFormDataService formDataService) { _formDataService = formDataService; }
public FormDataApiService(IFormDataService formDataService, IFormDataItemService formDataItemService) { _formDataService = formDataService; _formDataItemService = formDataItemService; }
public SuperFormController(IFormDataService formDataService) { _formDataService = formDataService; }