Esempio n. 1
0
 public void SetUp()
 {
     var acctService = new AccountService();
     sessionState = new SessionState
                        {
                            AuthToken = acctService.Login("admin", "admin"),
                            Game = new GameDto{Id=1},
                        };
     Assert.That(!string.IsNullOrEmpty(sessionState.AuthToken), "Hey WTF - login failed.");
     service = new BoardService(sessionState);
 }
Esempio n. 2
0
 public BoardService(SessionState sessionState)
 {
     this.sessionState = sessionState;
 }