Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public LeaveControllerTest()
 {
     _leaveDA = new Mock <ILeaveDA>();
     _leaveBO = new LeaveHandler(_leaveDA.Object);
 }
Esempio n. 3
0
 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);
        }
Esempio n. 7
0
 public LeaveController(ILeave leave, IUserProfile userProfile, UserManager <ApplicationUser> userManager)
 {
     _leave       = leave;
     _userManager = userManager;
     _userProfile = userProfile;
 }
 public ApplyLeavesController(ILeave LeaveRepo)
 {
     _LeaveRepository = LeaveRepo;
 }
Esempio n. 9
0
 public LeaveController(UserManager <NewUser> userManager, ILeave leave, ICategoryItems categoryItems)
 {
     _userManager   = userManager;
     _leave         = leave;
     _categoryItems = categoryItems;
 }
 public LeaveServicesController(ILeave <LeaveService> leave)
 {
     Leave1 = leave;
 }