From: <gc...@us...> - 2003-02-13 03:33:50
|
Update of /cvsroot/dotnetmock/dotnetmock/DotNetMock/Security/Principal In directory sc8-pr-cvs1:/tmp/cvs-serv16054/DotNetMock/Security/Principal Added Files: MockIIdentity.cs Log Message: Added MockIIdentity implementation --- NEW FILE: MockIIdentity.cs --- using System; using DotNetMock; using System.Security.Principal; namespace DotNetMock.Security.Principal { public class MockIIdentity : MockObject, IIdentity { private string _expectedAuthType = ""; private string _expectedName = ""; private bool _expectedIsAuth = false; public MockIIdentity() { this.name = "MockIdentity"; } public void SetExpectedAuthenticationType( string authType ) { _expectedAuthType = authType; } public void SetExpectedIsAuthenticated( bool isAuth ) { _expectedIsAuth = isAuth; } public void SetExpectedName( string name ) { _expectedName = name; } #region Implementation of IIdentity public bool IsAuthenticated { get { return _expectedIsAuth; } } public string Name { get { return _expectedName; } } public string AuthenticationType { get { return _expectedAuthType; } } #endregion } } |