public void Given_a_radio_group_has_a_selected_radio_button() { _componentFactory = SubstituteFor <IComponentFactory>(); _radioButtonGroup = Substitute.For <RadioButtonGroup>(); _componentFactory .HtmlControlFor <RadioButtonGroup>(_radioGroupPropertySelector) .Returns(_radioButtonGroup); _radioButtonGroup.SelectedElementAs <ChoiceType>().Returns(ChoiceType.Another); }
public void Given_a_radio_group_has_a_selected_radio_button() { _componentFactory = SubstituteFor<IComponentFactory>(); _radioButtonGroup = Substitute.For<RadioButtonGroup>(); _componentFactory .HtmlControlFor<RadioButtonGroup>(_radioGroupPropertySelector) .Returns(_radioButtonGroup); _radioButtonGroup.SelectedElementAs<ChoiceType>().Returns(ChoiceType.Another); }