public void ConfigurationXEmptyActionsReturnsNoUnselectedActions() { WcfUnitConfigurationSoapActions actions = new WcfUnitConfigurationSoapActions(); actions.soapAction = new SoapActionType[0]; Assert.AreEqual <int>(0, actions.UnselectedCount); }
public void ConfigurationXOneUnselectedActionReturnsOneUnselectedAction() { WcfUnitConfigurationSoapActions actions = new WcfUnitConfigurationSoapActions(); actions.soapAction = new SoapActionType[1]; actions.soapAction[0] = new SoapActionType(); actions.soapAction[0].Selected = false; Assert.AreEqual <int>(1, actions.UnselectedCount); }
/// <summary> /// Populates the grid with the soap actions and their selection status /// </summary> /// <param name="soapActions">The list of soap actions and their selection status.</param> public void SetSoapActionList(WcfUnitConfigurationSoapActions soapActions) { this.dataGridViewSoapActions.Rows.Clear(); if (soapActions != null && soapActions.soapAction != null) { foreach (SoapActionType sat in soapActions.soapAction) { this.dataGridViewSoapActions.Rows.Add(sat.action, sat.Selected); } } }
public void ConfigurationXNullActionsReturnsNoUnselectedActions() { WcfUnitConfigurationSoapActions actions = new WcfUnitConfigurationSoapActions(); Assert.AreEqual <int>(0, actions.UnselectedCount); }
public void SetSoapActionList(WcfUnitConfigurationSoapActions soapActions) { this.SoapActions = soapActions; }
/// <summary> /// Sets the list of soap actions and their selection status. /// </summary> /// <param name="soapActions">The list of soap actions and their selection status.</param> public void SetSoapActionList(WcfUnitConfigurationSoapActions soapActions) { this.setOptionsControl.SetSoapActionList(soapActions); }