Example #1
0
        protected override IDeviceType GetDeviceType(EmployeePositionType employeePosition)
        {
            var apple = new Apple();

            if (employeePosition == EmployeePositionType.TeamManager)
            {
                return(apple.GetDeviceType("Apple", DeviceType.Laptop));
            }
            return(apple.GetDeviceType("Apple", DeviceType.Desktop));
        }
Example #2
0
        protected override IDeviceType GetDeviceType(EmployeePositionType employeePosition)
        {
            var dell = new Dell();

            if (employeePosition == EmployeePositionType.TeamManager)
            {
                return(dell.GetDeviceType("Dell", DeviceType.Laptop));
            }
            return(dell.GetDeviceType("Dell", DeviceType.Desktop));
        }
Example #3
0
 protected abstract IDeviceType GetDeviceType(EmployeePositionType employeePosition);