public void TestIsSubmitProductTypeInfoButtonEnabled() { _target.SetFieldOrProperty(MEMBER_VARIABLE_NAME_PRODUCT_TYPES_MANAGEMENT_TAB_PAGE_STATE, ProductTypesManagementTabPageState.AddProductType); Assert.IsFalse(_productTypesManagementTabPagePresentationModel.IsSubmitProductTypeInfoButtonEnabled()); _target.SetFieldOrProperty(MEMBER_VARIABLE_NAME_IS_VALID_PRODUCT_TYPE_INFO, true); Assert.IsTrue(_productTypesManagementTabPagePresentationModel.IsSubmitProductTypeInfoButtonEnabled()); _target.SetFieldOrProperty(MEMBER_VARIABLE_NAME_PRODUCT_TYPES_MANAGEMENT_TAB_PAGE_STATE, ProductTypesManagementTabPageState.ViewProductType); Assert.IsFalse(_productTypesManagementTabPagePresentationModel.IsSubmitProductTypeInfoButtonEnabled()); }
/// <summary> /// Updates the product type information button view. /// </summary> private void UpdateProductTypeInfoButtonView() { _submitProductTypeInfoButton.Enabled = _productTypesManagementTabPagePresentationModel.IsSubmitProductTypeInfoButtonEnabled(); }