Beispiel #1
0
 public UserService()
 {
     userDA = new UserDA();
     sessionDA = new SessionDA();
     auth = new Authentication();
     interestDA = new InterestDA();
     languageDA = new LanguageDA();
 }
Beispiel #2
0
 public void CleanUp()
 {
     var da = new SessionDA();
     var session = da.GetOneByToken("abcdefghijklmnopqrstuvxyz");
     if (session != null)
     {
         da.Delete(session);
         da.SaveChanges();
     }
 }
Beispiel #3
0
 public Authentication()
 {
     userDA = new UserDA();
     sessionDA = new SessionDA();
 }
Beispiel #4
0
 public void Init()
 {
     var da = new SessionDA();
     da.Insert(new Session { UserID = 1, Token = "abcdefghijklmnopqrstuvxyz", TimeStamp = DateTime.Now });
     da.SaveChanges();
 }
Beispiel #5
0
 public void FindTest()
 {
     var da = new SessionDA();
     var foundSession = da.GetOneByToken("abcdefghijklmnopqrstuvxyz");
     Assert.IsNotNull(foundSession);
 }
 public MeetUpService()
 {
     meetUpDA = new MeetUpDA();
     sessionDA = new SessionDA();
     auth = new Authentication();
 }
 public SessionService()
 {
     sessionDA = new SessionDA();
     userDA = new UserDA();
     auth = new Authentication();
 }