Exemplo n.º 1
0
        public static void TestContractB_1(string CONF_SRC)
        {
            var conf = LaconicConfiguration.CreateFromString(CONF_SRC);

            using (var app = new ServiceBaseApplication(null, conf.Root))
            {
                var cl = new TestContractBClient(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);
            }
        }
Exemplo n.º 2
0
 public void SetPersonOfTheDay(PersonData person)
 {
     m_PersonOfTheDay = person;
 }