public void HaveItsNamesHashCode()
        {
            Privilege privilege         = EarningQueriesPrivilege.GetInstance();
            int       privilegeHashCode = privilege.GetHashCode();

            Assert.AreEqual(privilegeHashCode, privilege.Name.GetHashCode());
        }
        public void HaveItsNamesHashCode()
        {
            Privilege clientManagement  = ClientManagementPrivilege.GetInstance();
            int       privilegeHashCode = clientManagement.GetHashCode();

            Assert.AreEqual(privilegeHashCode, clientManagement.Name.GetHashCode());
        }
        public void HaveItsNamesHashCode()
        {
            Privilege userManagementPrivilege          = UserManagementPrivilege.GetInstance();
            int       registerPaymentPrivilegeHashCode = userManagementPrivilege.GetHashCode();

            Assert.AreEqual(registerPaymentPrivilegeHashCode, userManagementPrivilege.Name.GetHashCode());
        }
        public void HaveItsNamesHashCode()
        {
            Privilege providerManagement = ProviderManagementPrivilege.GetInstance();
            int       privilegeHashCode  = providerManagement.GetHashCode();

            Assert.AreEqual(privilegeHashCode, providerManagement.Name.GetHashCode());
        }
Esempio n. 5
0
 public override int GetHashCode()
 {
     return(_privilege.GetHashCode() ^ _privilegeAttributes.GetHashCode());
 }