示例#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();
 }