Example #1
0
        static void Main(string[] args)
        {
            var leaveRequest = new LeaveRequest()
            {
                Employee  = "Rupesh",
                LeaveDays = 4
            };

            var supervisor = new Supervisor();

            supervisor.HandleRequest(leaveRequest);
        }
Example #2
0
        static void Main(string[] args)
        {
            LeaveRequest leave = new LeaveRequest()
            {
                LeaveDays = 3,
                Employee  = "Jayashri"
            };
            ILeaveRequestHandler _leave = new Supervisor();

            _leave.HandleRequest(leave);

            Console.ReadLine();
        }
        static void Main(string[] args)
        {
            var leaveRequest = new LeaveRequest()
            {
                Employee  = "Karan",
                LeaveDays = 0
            };

            var supervisor = new Supervisor();

            supervisor.HandleRequest(leaveRequest);

            Console.ReadKey();
        }