Beispiel #1
0
        public void Read(string cprNumber, string connectionString)
        {
            // Create data provider
            System.Data.SqlClient.SqlConnectionStringBuilder builder = new System.Data.SqlClient.SqlConnectionStringBuilder(connectionString);
            E_MDataProvider emProvider = new E_MDataProvider();

            emProvider.ConfigurationProperties = new Dictionary <string, string>();
            foreach (var configurationKey in emProvider.ConfigurationKeys)
            {
                if (builder.ContainsKey(configurationKey.Name))
                {
                    emProvider.ConfigurationProperties[configurationKey.Name] = builder[configurationKey.Name].ToString();
                }
            }
            QualityLevel?ql;
            var          registration = emProvider.Read(new CprBroker.Schemas.PersonIdentifier()
            {
                CprNumber = cprNumber
            }, null, (cpr) => Guid.NewGuid(), out ql);

            Assert.NotNull(registration);
        }