FetchRecordset() 공개 메소드

public FetchRecordset ( WebService service, bool addFields ) : RecordsetList
service Dev2.Runtime.ServiceModel.Data.WebService
addFields bool
리턴 RecordsetList
예제 #1
0
        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);
        }
예제 #2
0
        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);
        }
예제 #3
0
        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);
 }