public UserService() { userDA = new UserDA(); sessionDA = new SessionDA(); auth = new Authentication(); interestDA = new InterestDA(); languageDA = new LanguageDA(); }
public void CleanUp() { var da = new SessionDA(); var session = da.GetOneByToken("abcdefghijklmnopqrstuvxyz"); if (session != null) { da.Delete(session); da.SaveChanges(); } }
public Authentication() { userDA = new UserDA(); sessionDA = new SessionDA(); }
public void Init() { var da = new SessionDA(); da.Insert(new Session { UserID = 1, Token = "abcdefghijklmnopqrstuvxyz", TimeStamp = DateTime.Now }); da.SaveChanges(); }
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(); }