public void FirstInterface ()
		{
			var restaurant = new StandingRestaurant ();
			Assert.AreEqual (Bus.Session.RequestName (bus_name), RequestNameReply.PrimaryOwner);
			Bus.Session.Register (path, restaurant);

			try {
				Assert.AreEqual ("cheese", GetFood (false));
			} finally {
				Bus.Session.ReleaseName (bus_name);
				Bus.Session.Unregister (path);
			}
		}
Beispiel #2
0
        public void FirstInterface()
        {
            var restaurant = new StandingRestaurant();

            Assert.AreEqual(Bus.Session.RequestName(bus_name), RequestNameReply.PrimaryOwner);
            Bus.Session.Register(path, restaurant);

            try {
                Assert.AreEqual("cheese", GetFood(false));
            } finally {
                Bus.Session.ReleaseName(bus_name);
                Bus.Session.Unregister(path);
            }
        }