public void AttemptDelete() { Helpers.TestResponse(isSubtypeOf, null, null, Methods.Put, Codes.MethodNotValid); Helpers.TestResponse(isSupertypeOf, null, null, Methods.Put, Codes.MethodNotValid); }
public void IsSupertypeOfMalformed() { string url = withActionObjectTypeActions + @"isSupertypeOf/invoke?supertype=" + Urls.NameSpace + "WithActionObject"; Helpers.TestResponse(url, null, null, Methods.Get, Codes.SyntacticallyInvalid); }
public void IsSupertypeOfNoArgs() { string url = withActionObjectTypeActions + @"isSupertypeOf/invoke"; Helpers.TestResponse(url, null, null, Methods.Get, Codes.SyntacticallyInvalid); }
public void IsSupertypeOfFalse() { Helpers.TestResponse(isSupertypeOf + @"MostSimple", "IsSupertypeOfFalse"); }
public void IsSupertypeOfNonExistentType() { Helpers.TestResponse(isSupertypeOf + "NoSuchClass", null, null, Methods.Get, Codes.NotFound); }
public void IsSubtypeOf() { Helpers.TestResponse(isSubtypeOf + "WithAction", "IsSubtypeOf"); }
public void IsSupertypeOf() { Helpers.TestResponse(isSupertypeOf + @"WithActionObject", "IsSupertypeOf"); }
public void DeleteItemFromList() { Helpers.TestResponse(simpleList, FilePrefix + "DeleteItemFromList", simple1AsArgument.ToString(), Methods.Delete, Codes.Forbidden); }
public void PostItemIntoList() { Helpers.TestResponse(simpleList, FilePrefix + "PostItemIntoList", simple1AsArgument.ToString(), Methods.Post, Codes.Forbidden); }
public void AttemptDelete() { Helpers.TestResponse(dt, null, null, Methods.Put, Codes.MethodNotValid); }
public void DomainTypeResource() { Helpers.TestResponse(dt, "DomainTypeActionParameterDescription"); }
protected void DoAttemptWithMalformedDomainModel() { string url = BaseUrl + "AnActionReturnsQueryable" + @"/invoke" + JsonRep.DomainModeQueryStringMalformed; Helpers.TestResponse(url, null, null, Methods.Get, Codes.SyntacticallyInvalid); }
protected void DoWithSimpleDomainModel() { string url = BaseUrl + "AnActionReturnsQueryable" + @"/invoke" + JsonRep.SimpleDomainModeAsQueryString; Helpers.TestResponse(url, FilePrefix + "WithSimpleDomainModel" + "-Invoke"); }
public void AttemptPutItemIntoSet() { Helpers.TestResponse(simpleSet, FilePrefix + "PostItemIntoSet", simple1AsArgument.ToString(), Methods.Put, Codes.MethodNotValid); }