public void TestEquals_DifferentPermissionId()
        {
            var permissionId = 1;
            var model        = new ResourcePermissionViewModel();

            model.PermissionId = permissionId;

            var model2 = new ResourcePermissionViewModel();

            model2.PermissionId = permissionId + 1;

            Assert.IsFalse(model.Equals(model2));
            Assert.IsFalse(model2.Equals(model));
        }
        public void TestEquals_SamePermissionId()
        {
            var permissionId = 1;
            var model        = new ResourcePermissionViewModel();

            model.PermissionId = permissionId;

            var model2 = new ResourcePermissionViewModel();

            model2.PermissionId = permissionId;

            Assert.IsTrue(model.Equals(model2));
            Assert.IsTrue(model2.Equals(model));
        }