Beispiel #1
0
        public void ShouldReturnConfiguredRegistrationWhenApplicationIdDoesNotMatch()
        {
            var service = new SingleTenantApplicationRegistryService(_directorySettings);
            var reg     = service.GetApplicationByDirectoryName(Guid.NewGuid().ToString());

            Assert.NotNull(reg);
            Assert.Equal(reg.ClientId, AppId);
            Assert.Equal(reg.ClientSecret, PublicKey);
            Assert.Equal(reg.DirectoryName, DirectoryName);
        }
Beispiel #2
0
        public void ShouldReturnRegistrationWithMatchingDirectoryName()
        {
            var service = new SingleTenantApplicationRegistryService(_directorySettings);
            var reg     = service.GetApplicationByDirectoryName(DirectoryName);

            Assert.NotNull(reg);
            Assert.Equal(reg.ClientId, AppId);
            Assert.Equal(reg.ClientSecret, PublicKey);
            Assert.Equal(reg.DirectoryName, DirectoryName);
        }