public DashboardProvider( ISkillMasterRepository skillMasterRepo, IAssociateRepository associateRepo, IAssociateSkillMapRepository associateSkillMapRepo) { if (skillMasterRepo != null) { this._skillMasterRepo = skillMasterRepo; } else { this._skillMasterRepo = new SkillMasterRepository(); } if (associateRepo != null) { this._associateRepo = associateRepo; } else { this._associateRepo = new AssociateRepository(); } if (associateSkillMapRepo != null) { this._associateSkillMapRepo = associateSkillMapRepo; } else { this._associateSkillMapRepo = new AssociateSkillMapRepository(); } }
public SkillMasterProvider(ISkillMasterRepository skillRepo) { if (skillRepo != null) { this._skillMasterRepo = skillRepo; } else { this._skillMasterRepo = new SkillMasterRepository(); } }
public SkillsController(ISkillMasterRepository skillRepo, ISkillMasterProvider skillProvider) { if (skillRepo != null) { this._skillRepository = skillRepo; } else { this._skillRepository = new SkillMasterRepository(); } if (skillProvider != null) { this._skillProvider = skillProvider; } else { this._skillProvider = new SkillMasterProvider(this._skillRepository); } }
public AssociatesController( ISkillMasterRepository skillRepo, ISkillMasterProvider skillProvider, IAssociateRepository associateRepo, IAssociateProvider associateProvider, IAssociateSkillMapRepository assocSkillMapRepo, IDashboardProvider dashboardProvider) { if (skillRepo != null) { this._skillRepository = skillRepo; } else { this._skillRepository = new SkillMasterRepository(); } if (skillProvider != null) { this._skillProvider = skillProvider; } else { this._skillProvider = new SkillMasterProvider(this._skillRepository); } if (associateRepo != null) { this._associateRepository = associateRepo; } else { this._associateRepository = new AssociateRepository(); } if (associateProvider != null) { this._associateProvider = associateProvider; } else { this._associateProvider = new AssociateProvider(this._associateRepository); } if (assocSkillMapRepo != null) { this._assocSkillMapRepo = assocSkillMapRepo; } else { this._assocSkillMapRepo = new AssociateSkillMapRepository(); } if (dashboardProvider != null) { this._dashboardProvider = dashboardProvider; } else { this._dashboardProvider = new DashboardProvider(this._skillRepository, this._associateRepository, this._assocSkillMapRepo); } }