Пример #1
0
        public void ThenGetTenantShouldHaveTheTenantId(string detailsToInspect, string wellKnownGuidLabel)
        {
            Guid    wellKnownGuid   = this.WellKnownGuids[wellKnownGuidLabel];
            string  expectedId      = TenantExtensions.EncodeGuid(wellKnownGuid);
            ITenant tenantToInspect = this.Tenants[detailsToInspect];

            tenantToInspect.Id.Should().Be(expectedId);
        }
Пример #2
0
        public void ThenTheTenantDetailsLabelledShouldHaveTenantIdThatIsTheConcatenatedHashesOfTheGuidsLabelledAnd(
            string detailsToInspect, string wellKnownGuidLabel1, string wellKnownGuidLabel2)
        {
            Guid    wellKnownGuid1  = this.WellKnownGuids[wellKnownGuidLabel1];
            Guid    wellKnownGuid2  = this.WellKnownGuids[wellKnownGuidLabel2];
            string  expectedId      = TenantExtensions.EncodeGuid(wellKnownGuid1) + TenantExtensions.EncodeGuid(wellKnownGuid2);
            ITenant tenantToInspect = this.Tenants[detailsToInspect];

            tenantToInspect.Id.Should().Be(expectedId);
        }