Inheritance: IRestaurantv2
		public void SecondInterface ()
		{
			var restaurant = new SeatedRestaurant ();
			Bus.Session.Register (path, restaurant);
			Assert.AreEqual (Bus.Session.RequestName (bus_name), RequestNameReply.PrimaryOwner);

			try {
				Assert.AreEqual ("bacon", GetFood (true));
			} finally {
				Bus.Session.ReleaseName (bus_name);
				Bus.Session.Unregister (path);
			}
		}
Example #2
0
        public void SecondInterface()
        {
            var restaurant = new SeatedRestaurant();

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

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