public class SubscriberThing
{
public int IntProperty { get; set; }
}
var subscriber = new SubscriberThing();
MessagingCenter.Subscribe (subscriber, "IntPropertyMessage", (s, e) => {
subscriber.IntProperty = e;
});
//...later...
MessagingCenter.Send(this, "IntPropertyMessage", 2);
Assert.AreEqual(2, subscriber.IntProperty);