1 // Copyright 2004-2008 Castle Project - http://www.castleproject.org/
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
7 // http://www.apache.org/licenses/LICENSE-2.0
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
15 namespace Castle
.Windsor
.Tests
.Components
20 /// Summary description for Employee.
22 public class Employee
: IEmployee
24 private string _empID
;
25 private string _lastName
;
26 private string _firstName
;
27 private string _middleName
;
28 private bool _isProxy
;
29 private bool _isSupervisor
;
30 private string _email
;
31 private string _ntLogin
;
37 public string EmployeeID
39 get { return _empID; }
40 set { _empID = value; }
47 if (_ntLogin
.Length
> 0)
54 // if (Config.IsInPortal)
56 // _ntLogin = User.FindLoginIdFromEmpId(_empID);
60 // _ntLogin = Config.DebugNtLogin;
67 // Logger.Error("NTLogin check failed.", e);
68 // Logger.SendMail("ERROR", "NTLogin check failed.", e);
74 public string LastName
76 get { return _lastName; }
77 set { _lastName = value; }
80 public string FirstName
82 get { return _firstName; }
83 set { _firstName = value; }
86 public string MiddleName
88 get { return _middleName; }
89 set { _middleName = value; }
94 get { return _isProxy; }
95 set { _isProxy = value; }
98 public string FullName
100 get { return String.Format("{0} {1} {2}
", _firstName, _middleName, _lastName); }
105 get { return _email; }
106 set { _email = value; }
109 public bool IsSupervisor
111 get { return _isSupervisor; }
112 set { _isSupervisor = value; }
115 public void SetNTLogin(string ntLogin)