public UserController() { userRepository = new UserRepository(); debtorRepository = new DebtorRepository(); userDebtorRepository = new UserDebtorRepository(); urlRepository = new UrlRepository(); }
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); }
public void DebtorList() { var rep = new DebtorRepository(); var debtors = rep.List("DEBITEURNR_ASC"); debtors.Results.Should().NotBeNullOrEmpty(); }
public DebtorController() : base() { debtorRepository = new DebtorRepository(); logger = new SystemLogger(); }
public void ListDebtors() { var rep = new DebtorRepository(); var debtors = rep.List(); }