示例#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);
 }
示例#2
0
 public BoardService(SessionState sessionState)
 {
     this.sessionState = sessionState;
 }