public ILeave Leave(string name = null, string promptText = "", bool confirmPrompt = true) { ILeave result = ResolveNamed <ILeave>(name ?? "Leave"); result.PromptText = promptText; result.ConfirmPrompt = confirmPrompt; return(result); }
public LeaveControllerTest() { _leaveDA = new Mock <ILeaveDA>(); _leaveBO = new LeaveHandler(_leaveDA.Object); }
public LeaveController(ILeave leave) { _leave = leave; }
/// <summary> /// Initializes a new instance of the <see cref = "BenefitFactory"/> class. /// </summary> /// <param name = "datarow" > /// The datarow. /// </param> public BenefitFactory(DataRow datarow) { Vacation = new Leave(datarow); }
/// <summary> /// Initializes a new instance of the <see cref = "BenefitFactory"/> class. /// </summary> /// <param name = "builder" > /// The builder. /// </param> public BenefitFactory(IBuilder builder) { Vacation = new Leave(builder); }
// *************************************************************************************************************************** // ********************************************* CONSTRUCTORS ************************************************************** // *************************************************************************************************************************** /// <summary> /// Initializes a new instance of the <see cref = "BenefitFactory"/> class. /// </summary> /// <param name = "query" > /// The query. /// </param> public BenefitFactory(IQuery query) { Vacation = new Leave(query); }
public LeaveController(ILeave leave, IUserProfile userProfile, UserManager <ApplicationUser> userManager) { _leave = leave; _userManager = userManager; _userProfile = userProfile; }
public ApplyLeavesController(ILeave LeaveRepo) { _LeaveRepository = LeaveRepo; }
public LeaveController(UserManager <NewUser> userManager, ILeave leave, ICategoryItems categoryItems) { _userManager = userManager; _leave = leave; _categoryItems = categoryItems; }
public LeaveServicesController(ILeave <LeaveService> leave) { Leave1 = leave; }