Esempio n. 1
0
 public BasicAuthenticationHandler(
     IOptionsMonitor <AuthenticationSchemeOptions> options,
     ILoggerFactory logger,
     UrlEncoder encoder,
     ISystemClock clock,
     ILogger <BasicAuthenticationHandler> nlogger,
     ICostumerService costumerService)
     : base(options, logger, encoder, clock)
 {
     _costumerService = costumerService;
     _logger          = nlogger;
 }
        public CostumerServiceTests()
        {
            CostumerDatabase.CostumerDB.Clear();
            var temp = new List <Costumer>()
            {
                Costumer.ChangeRoleToAdmin(new Costumer("Admin", "Polfliet", "*****@*****.**", "159159159", "Azerty123", new Adderss("hier", "8", "btown", "3350"))),
                new Costumer("Willem", "Polfliet", "*****@*****.**", "159159159", "Azerty123", new Adderss("hier", "8", "btown", "3350")),
                new Costumer("Melliw", "Teilflop", "*****@*****.**", "951951951", "Azerty123", new Adderss("hier", "8", "btown", "3350")),
                new Costumer("Shani", "Decoster", "*****@*****.**", "753753753", "Azerty123", new Adderss("hier", "8", "btown", "3350")),
                new Costumer("Inahs", "Retsoced", "*****@*****.**", "357357357", "Azerty123", new Adderss("hier", "8", "btown", "3350")),
            };

            CostumerDatabase.CostumerDB.AddRange(temp);

            costumerService = new CostumerService();
        }
Esempio n. 3
0
 public CostumerController(ICostumerService Service, ICostumerMapper Mapper)
 {
     _costumerService = Service;
     _costumerMapper  = Mapper;
 }
 public CostumerController(ICostumerService costumerService)
 {
     _costumerService = costumerService;
 }