public void TestCorrectRights()
        {
            var competitionId = Guid.Parse("731bc7fd-1ab6-49ae-8056-92b507eef5e9");

            var rights = new UserCompetitionRights(competitionId, new List<WinShooterCompetitionPermissions> { WinShooterCompetitionPermissions.CreateCompetition });
            Assert.IsTrue(rights.HasPermission(WinShooterCompetitionPermissions.CreateCompetition));
            Assert.IsFalse(rights.HasPermission(WinShooterCompetitionPermissions.CreateUserCompetitionRole));
        }
        public void TestFetchingRightsFromDatabase()
        {
            var user = new User { Id = Guid.Parse("731bc7fd-1ab6-49ae-8056-92b507eef5f0") };
            var competitionId = Guid.Parse("731bc7fd-1ab6-49ae-8056-92b507eef5e9");

            var rights = new UserCompetitionRights(competitionId, user);
            rights.Permissions.Add(WinShooterCompetitionPermissions.CreateCompetition);
            Assert.IsTrue(rights.HasPermission(WinShooterCompetitionPermissions.CreateCompetition));
            Assert.IsFalse(rights.HasPermission(WinShooterCompetitionPermissions.CreateUserCompetitionRole));
        }