예제 #1
0
        public void CheckIfTenantSecretAndTenantClaimsAreNotEquals_ExpectedTenantEqualityComparerResultTrue()
        {
            var comparer = new TenantEqualityComparer <Guid, Dictionary <string, object>, Dictionary <string, object> >();
            var tenant   = new TenantDefault(_secretFirstTenant);

            Assert.IsFalse(comparer.Equals(tenant, _secretSecondTenant));
        }
예제 #2
0
        public void CheckIfTenantSecretAndTenantClaimsAreEquals()
        {
            var comparer = new TenantEqualityComparer <Guid>();
            var tenant   = new TenantDefault(_secretFirstTenant);
            var tenant1  = new TenantDefault(_claimsFirstTenant);

            Assert.IsTrue(comparer.Equals(tenant, tenant1));
        }