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); } }
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); } }