BindaTests.Tests.BindingObjectToFormTests.When_binding_an_object_to_a_form_with_custom_control_registrations C# (CSharp) Method

When_binding_an_object_to_a_form_with_custom_control_registrations() private method

        public void When_binding_an_object_to_a_form_with_custom_control_registrations()
        {
            var binder = new Binder();
            var form = new MySampleForm();
            var strategy = new TestBindaStrategy();

            binder.AddRegistration(strategy, form.Title);
            binder.AddRegistration(typeof (TextBox), "Text");

            var post = NeededObjectsFactory.CreatePost();
            binder.Bind(post, form);

            Assert.IsTrue(strategy.WasSet);
        }