Get() public method

public Get ( string args, System.Guid workspaceId, System.Guid dataListId ) : Service
args string
workspaceId System.Guid
dataListId System.Guid
return Service
Ejemplo n.º 1
0
 public void Services_Get_WithPluginServiceWebRequestPoco_ShouldReturnPluginService()
 {
     //------------Setup for test--------------------------
     var services = new Dev2.Runtime.ServiceModel.Services();
     var webRequestPoco = new WebRequestPoco { ResourceType = "PluginService" };
     //------------Execute Test---------------------------
     var service = services.Get(JsonConvert.SerializeObject(webRequestPoco), Guid.Empty, Guid.Empty);
     //------------Assert Results-------------------------
     Assert.IsNotNull(service);
     Assert.IsInstanceOfType(service, typeof(PluginService));
 }
Ejemplo n.º 2
0
        public void GetWithInvalidArgsExpectedReturnsNewService()
        {
            var services = new Dev2.Runtime.ServiceModel.Services();
            var result = services.Get("xxxxx", Guid.Empty, Guid.Empty);

            Assert.AreEqual(Guid.Empty, result.ResourceID);
        }