public void SmokeTest() { var settings = new CoreSettings { EnableGuestSystem = true }; var accessControl = new AccessControl(settings); Guid token = accessControl.RegisterRemoteAccessToken(new Guid()); var entry = SetupVotedEntry(); accessControl.RegisterVote(token, entry); Assert.True(accessControl.IsVoteRegistered(token, entry)); Assert.False(accessControl.IsVoteRegistered(token, new PlaylistEntry(0, Helpers.SetupSongMock()))); }
public void SmokeTest() { var settings = new CoreSettings { EnableVotingSystem = true }; var accessControl = new AccessControl(settings); Guid token = accessControl.RegisterRemoteAccessToken(new Guid()); var entry = SetupVotedEntry(); accessControl.RegisterVote(token, entry); Assert.True(accessControl.IsVoteRegistered(token, entry)); Assert.False(accessControl.IsVoteRegistered(token, new PlaylistEntry(0, Helpers.SetupSongMock()))); }