Example #1
0
 public UserController()
 {
     userRepository       = new UserRepository();
     debtorRepository     = new DebtorRepository();
     userDebtorRepository = new UserDebtorRepository();
     urlRepository        = new UrlRepository();
 }
Example #2
0
        public void UpdateUser()
        {
            var userRep = new UserRepository();

            var user = userRep.GetByUsername("raymond");

            /*
             * user.Urls.Clear();
             * var urlRep = new UrlRepository();
             *
             * var url1 = urlRep.GetByName("api/woood-web-availability/list");
             * var url2 = urlRep.GetByName("api/woood-structureview/list");
             *
             * user.Urls.Add(url1);
             * user.Urls.Add(url2);
             */
            user.Debtors.Clear();
            var debtorRep = new DebtorRepository();

            var url1 = debtorRep.GetById("1001502");

            user.Debtors.Add(url1);

            userRep.Update(user);
        }
Example #3
0
        public void DebtorList()
        {
            var rep = new DebtorRepository();

            var debtors = rep.List("DEBITEURNR_ASC");

            debtors.Results.Should().NotBeNullOrEmpty();
        }
Example #4
0
 public DebtorController() : base()
 {
     debtorRepository = new DebtorRepository();
     logger           = new SystemLogger();
 }
Example #5
0
        public void ListDebtors()
        {
            var rep = new DebtorRepository();

            var debtors = rep.List();
        }