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);
        }
Beispiel #2
0
 public void SignOut()
 {
     _processor.LogoutPlayer();
     StateManager.OnPlayerLoggedOut();
 }