private ParameterTestClass CreateTestClass()
        {
            var pars = new ParameterTestClass();

            var par1 = new Parameter()
            {
                Name = "param1",
                Value = "test parameter value"
            };
            pars.Parameters.Add(par1);

            var par2 = new JobDefinitionParameter()
            {
                Name = "param2",
                TypeName = typeof(string).AssemblyQualifiedName,
                Direction = JobParameterDirection.In
            };
            pars.Parameters.Add(par2);

            var par3 = new JobInstanceParameter()
            {
                Name = "param3",
                Value = 123L
            };
            pars.Parameters.Add(par3);

            return pars;
        }
        public void SerializeSettingsTest()
        {
            var p = new Parameter();

            p.Value = new KeystoneSettings();

            var xml = p.XmlValue;
        }
        public void SerializeSettingsTest()
        {
            var oid = new OpenIDAuthenticator()
                {
                    AuthorityName = "Google",
                    AuthorityUri = new Uri("https://www.google.com/accounts/o8/ud"),
                    DisplayName = "GoogleID",
                    DiscoveryUri = new Uri("https://www.google.com/accounts/o8/id")
                };

            var ks = new KeystoneAuthenticator()
            {
                AuthorityName = "Keystone",
                AuthorityUri = new Uri("http://localhost:5000"),
                DisplayName = "Keystone",
            };

            var p = new Parameter();
            p.Value = new Authenticator[] { oid };
        }
Exemple #4
0
 public Parameter(Parameter old)
 {
     CopyMembers(old);
 }
Exemple #5
0
 private void CopyMembers(Parameter old)
 {
     this.name = old.name;
     this.xmlValue = old.xmlValue;
 }