Beispiel #1
0
        public void ConfigurationXEmptyActionsReturnsNoUnselectedActions()
        {
            WcfUnitConfigurationSoapActions actions = new WcfUnitConfigurationSoapActions();

            actions.soapAction = new SoapActionType[0];
            Assert.AreEqual <int>(0, actions.UnselectedCount);
        }
Beispiel #2
0
        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);
         }
     }
 }
Beispiel #4
0
        public void ConfigurationXNullActionsReturnsNoUnselectedActions()
        {
            WcfUnitConfigurationSoapActions actions = new WcfUnitConfigurationSoapActions();

            Assert.AreEqual <int>(0, actions.UnselectedCount);
        }
Beispiel #5
0
 public void SetSoapActionList(WcfUnitConfigurationSoapActions soapActions)
 {
     this.SoapActions = soapActions;
 }
Beispiel #6
0
 /// <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);
 }