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); }
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); }
public AuthenticateController() { _authenticateBusiness = new AuthenticateBusiness(); }