예제 #1
0
        public void PluginServicesTestWithInvalidArgsExpectedReturnsRecordsetWithError()
        {
            //------------Setup for test--------------------------
            var services = new PluginServicesMock();
            //------------Execute Test---------------------------
            var result = services.Test("xxx", out string serializedResult);

            //------------Assert Results-------------------------
            Assert.IsTrue(result[0].HasErrors);
        }
예제 #2
0
        public void PluginServicesTestWithNullArgsExpectedReturnsRecordsetWithError()
        {
            //------------Setup for test--------------------------
            var services = new PluginServicesMock();
            //------------Execute Test---------------------------
            var result = services.Test(null, Guid.Empty, Guid.Empty);

            //------------Assert Results-------------------------
            Assert.IsTrue(result[0].HasErrors);
        }
예제 #3
0
        public void PluginServicesTestWithValidArgsExpectedFetchesRecordset()
        {
            //------------Setup for test--------------------------
            var svc         = CreatePluginService();
            var args        = svc.ToString();
            var workspaceID = Guid.NewGuid();
            //------------Execute Test---------------------------
            var services = new PluginServicesMock();
            var result   = services.Test(args, workspaceID, Guid.Empty);

            //------------Assert Results-------------------------
            Assert.AreEqual(1, services.FetchRecordsetHitCount);
            Assert.AreEqual(1, result.Count);
        }
 public void PluginServicesTestWithValidArgsExpectedFetchesRecordset()
 {
     //------------Setup for test--------------------------
     var svc = CreatePluginService();
     var args = svc.ToString();
     var workspaceID = Guid.NewGuid();
     //------------Execute Test---------------------------
     var services = new PluginServicesMock();
     var result = services.Test(args, workspaceID, Guid.Empty);
     //------------Assert Results-------------------------
     Assert.AreEqual(1, services.FetchRecordsetHitCount);
     Assert.AreEqual(1, result.Count);
 }
 public void PluginServicesTestWithInvalidArgsExpectedReturnsRecordsetWithError()
 {
     //------------Setup for test--------------------------
     var services = new PluginServicesMock();
     //------------Execute Test---------------------------
     var result = services.Test("xxx", Guid.Empty, Guid.Empty);
     //------------Assert Results-------------------------
     Assert.IsTrue(result[0].HasErrors);
 }