Exemple #1
0
        public static void TestContractB_1(string CONF_SRC)
        {
            var conf = LaconicConfiguration.CreateFromString(CONF_SRC);

            using (var app = new AzosApplication(null, conf.Root))
            {
                var cl = new TestContractBClient(app.Glue, app.ConfigRoot.AttrByName("cs").Value);

                var person = new PersonData {
                    ID = 10, FirstName = "Joe", LastName = "Tester"
                };

                cl.SetPersonOfTheDay(person);

                var ret = cl.GetPersonOfTheDay();

                Aver.IsTrue(10 == ret.ID);
                Aver.AreEqual("Joe", ret.FirstName);
                Aver.AreEqual("Tester", ret.LastName);

                dumpBindingTransports(cl.Binding);
            }
        }
Exemple #2
0
 public void SetPersonOfTheDay(PersonData person)
 {
     m_PersonOfTheDay = person;
 }