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)); }
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)); }
protected abstract IDeviceType GetDeviceType(EmployeePositionType employeePosition);