コード例 #1
0
        public void SetUp()
        {
            _administratorBusinessMock = new Mock <IAdministratorBusiness>();
            _permissionBusinessMock    = new Mock <IPermissionBusiness>();
            _encryptorHandlerMock      = new Mock <IEncryptorHandler>();
            _tokenHandlerMock          = new Mock <ITokenHandler>();

            _authenticateBusiness = new AuthenticateBusiness(
                _administratorBusinessMock.Object,
                _encryptorHandlerMock.Object,
                _tokenHandlerMock.Object,
                _permissionBusinessMock.Object);
        }
コード例 #2
0
        public async Task AuthenticateBusiness_VerificarUsuario_ShouldVerify()
        {
            AuthenticateBusiness authBuss = new AuthenticateBusiness();

            Usuarios usuarios = new Usuarios
            {
                Usuario = "Anderson",
                Clave   = "Anderson"
            };

            UsuariosDTO usuarioVerificado = await authBuss.VerificarUsuario(usuarios);

            Assert.IsNotNull(usuarioVerificado);
        }
コード例 #3
0
 public AuthenticateController()
 {
     _authenticateBusiness = new AuthenticateBusiness();
 }