public ClientController(ILogger <ClientController> logger, ContextEntity context)
 {
     _logger      = logger;
     _context     = new ClientRepositoryEntity(context);
     _userSave    = new ClientSaveService(_context);
     _userList    = new ClientListService(_context);
     _clientLogin = new ClientLoginService(_context);
     _userDelete  = new ClientDeleteService(_context);
 }
Beispiel #2
0
 public ClientController(ILogger <ClientController> logger)
 {
     _logger      = logger;
     _context     = new ClientRepositorySQLDriver();
     _userSave    = new ClientSaveService(_context);
     _userList    = new ClientListService(_context);
     _clientLogin = new ClientLoginService(_context);
     _userDelete  = new ClientDeleteService(_context);
 }
        private async Task <string> GetClientLoginServiceStatus()
        {
            try
            {
                var result = await ClientLoginService.CheckUsernameAvailabilityAsync(null);

                return("Ok");
            }
            catch (EndpointNotFoundException)
            {
                return("Down");
            }
            catch (FaultException)
            {
                return("Error");
            }
        }
 public void Setup()
 {
     this._repository = new FakeClientRepository();
     this._service    = new ClientLoginService(_repository);
 }
 public ClientLoginServiceTests()
 {
     _sut = new ClientLoginService(_clientRepository, _jwtBearer, _passwordHasher);
 }
        public ClientLoginViewModel()
        {
            AddCommand = new DelegateCommand(Add, canAdd);

            client = new ClientLoginService();
        }