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); }
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); }
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); }