Esempio n. 1
0
        public void Should_Reset_Player_On_Success()
        {
            var authenticationResult = new AuthenticationResult();

            _authenticationService.Setup(x => x.Logout())
            .Returns(() => authenticationResult = new AuthenticationResult {
                Code = AuthenticationResultCode.Success, Player = null
            });

            _processor.LogoutPlayer();

            Assert.IsNull(authenticationResult.Player);
        }
Esempio n. 2
0
 public void SignOut()
 {
     _processor.LogoutPlayer();
     StateManager.OnPlayerLoggedOut();
 }