public void When_binding_an_oject_to_aform_with_custom_registrations()
{
var binder = new Binder();
binder.AddRegistration(typeof (FluxCapacitor), "PopularityRanking");
var form = new MySampleForm();
var post = NeededObjectsFactory.CreatePost();
post.PopularityRanking = TestVariables.PopularityRanking;
binder.Bind(post, form);
Assert.That(form.Title.Text, Is.EqualTo(TestVariables.Title));
Assert.That(form.Author.Text, Is.EqualTo(TestVariables.Author));
Assert.That(form.Date.Value, Is.EqualTo(TestVariables.Posted));
Assert.That(form.Body.Text, Is.EqualTo(TestVariables.Body));
Assert.That(form.PopularityRanking.PopularityRanking, Is.EqualTo(TestVariables.PopularityRanking));
}