public void Initialize()
 {
     Site = CreateAndLoadSite(-5, "site for user tests", 360, 7, out AlarmClock);
     Site.CreateUser(UserName, Pw);
     User    = Site.GetUsers().SingleOrDefault(u => u.Username == UserName);
     Session = Site.Login(UserName, Pw);
     Assert.That(User, Is.Not.Null, "Set up should be successful");
 }
Exemple #2
0
 protected IUser CreateAndLogUser(string username, out ISession session, TAP2018_19.AuctionSite.Interfaces.ISite site)
 {
     site.CreateUser(username, username);
     session = site.Login(username, username);
     return(site.GetUsers().FirstOrDefault(u => u.Username == username));
 }