Exemple #1
0
 public static IRequestBuilder ReturnsFile(this IRequestBuilder builder)
 {
     return(builder.Returns(RequestReturn.File()));
 }
Exemple #2
0
 public static IRequestBuilder Returns(this IRequestBuilder builder, Type returnedType)
 {
     return(builder.Returns(RequestReturn.Object(returnedType)));
 }
Exemple #3
0
 public static IRequestBuilder ReturnsFile(this IRequestBuilder builder, string contentType)
 {
     return(builder.Returns(RequestReturn.File(contentType)));
 }
Exemple #4
0
 public static IRequestBuilder Returns <T>(this IRequestBuilder builder)
 {
     return(builder.Returns(RequestReturn.Object(typeof(T))));
 }