Ejemplo n.º 1
0
        private OrganizationSchema GetOrganizationSchemaStub()
        {
            var organizationSchema = new OrganizationSchema
            {
                OrganizationId   = 989778471,
                OrganizationName = "Gecko Eiendom AS",
                Database         = "MASTER_ORA",
            };

            return(organizationSchema);
        }
Ejemplo n.º 2
0
        public async void TestGetConfigAsync()
        {
            //Arrange
            var configService  = new ConfigService(GetConfigProviderMock(), GetMemoryCache());
            var expextedConfig = new OrganizationSchema
            {
                OrganizationId   = 989778471,
                OrganizationName = "Gecko Eiendom AS",
                Database         = "MASTER_ORA"
            };
            //Act
            var actual = await configService.GetConfigAsync("989778471");

            //Assert
            Assert.True(actual.OrganizationId == expextedConfig.OrganizationId &&
                        actual.OrganizationName == expextedConfig.OrganizationName);
        }