public FetchRecordset ( |
||
service | ||
addFields | bool | |
return | RecordsetList |
public void WebServicesTestWithValidArgsExpectedClearsRecordsFirst() { //------------Setup for test-------------------------- var service = CreateDummyWebService(); //------------Execute Test--------------------------- var services = new WebServicesMock(); services.FetchRecordset(service, true); //------------Assert Results------------------------- Assert.AreEqual(1, services.FetchRecordsetHitCount); }
public void WebServicesTestWithValidArgsAndRecordsetFieldsExpectedDoesNotAddRecordsetFields() { //------------Setup for test-------------------------- var service = CreateDummyWebService(); //------------Execute Test--------------------------- var services = new WebServicesMock(); services.FetchRecordset(service, false); //------------Assert Results------------------------- Assert.IsFalse(services.FetchRecordsetAddFields); }
public void WebServicesTestWithValidArgsAndNoRecordsetFieldsExpectedAddsRecordsetFields() { //------------Setup for test-------------------------- var service = CreateDummyWebService(); //service.Recordset.Fields.Clear(); //------------Execute Test--------------------------- //------------Assert Results------------------------- var services = new WebServicesMock(); services.FetchRecordset(service, true); Assert.IsTrue(services.FetchRecordsetAddFields); }
public void WebServicesTestWithValidArgsExpectedClearsRecordsFirst() { //------------Setup for test-------------------------- var service = CreateDummyWebService(); //------------Execute Test--------------------------- var services = new WebServicesMock(); services.FetchRecordset(service, true); //------------Assert Results------------------------- Assert.AreEqual(1, services.FetchRecordsetHitCount); }
public void WebServicesTestWithValidArgsAndNoRecordsetFieldsExpectedAddsRecordsetFields() { //------------Setup for test-------------------------- var service = CreateDummyWebService(); //service.Recordset.Fields.Clear(); //------------Execute Test--------------------------- //------------Assert Results------------------------- var services = new WebServicesMock(); services.FetchRecordset(service, true); Assert.IsTrue(services.FetchRecordsetAddFields); }
public void WebServicesTestWithValidArgsAndRecordsetFieldsExpectedDoesNotAddRecordsetFields() { //------------Setup for test-------------------------- var service = CreateDummyWebService(); //------------Execute Test--------------------------- var services = new WebServicesMock(); services.FetchRecordset(service, false); //------------Assert Results------------------------- Assert.IsFalse(services.FetchRecordsetAddFields); }