예제 #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);
        }
예제 #2
0
파일: Menu.cs 프로젝트: einsju/Photofeud
 public void SignOut()
 {
     _processor.LogoutPlayer();
     StateManager.OnPlayerLoggedOut();
 }