14 instantiations of Todo
Microsoft.AspNetCore.Http.Results.Tests (14)
30 references to Todo
Microsoft.AspNetCore.Http.Results.Tests (30)
ResultsTests.cs (30)
44var value = new Todo(1);
47var result = Results.Accepted(uri, value) as Accepted<Todo>;
136var value = new Todo(1);
139var result = Results.AcceptedAtRoute(routeName, routeValues, value) as AcceptedAtRoute<Todo>;
154var value = new Todo(1);
157var result = Results.AcceptedAtRoute(routeName, routeValues, value) as AcceptedAtRoute<Todo>;
240var value = new Todo(1);
243var result = Results.BadRequest(value) as BadRequest<Todo>;
419var value = new Todo(1);
422var result = Results.InternalServerError(value) as InternalServerError<Todo>;
499var value = new Todo(1);
502var result = Results.Conflict(value) as Conflict<Todo>;
601var value = new Todo(1);
604var result = Results.Created(uri, value) as Created<Todo>;
647var value = new Todo(1);
650var result = Results.Created(uri, value) as Created<Todo>;
814var value = new Todo(1);
817var result = Results.CreatedAtRoute(routeName, routeValues, value) as CreatedAtRoute<Todo>;
832var value = new Todo(1);
835var result = Results.CreatedAtRoute(routeName, routeValues, value) as CreatedAtRoute<Todo>;
866var value = new Todo(1);
869var result = Results.CreatedAtRoute(routeName, null, value) as CreatedAtRoute<Todo>;
952var data = new Todo(1);
958var result = Results.Json(data, options, contentType, statusCode) as JsonHttpResult<Todo>;
1051var ex = Assert.Throws<InvalidOperationException>(() => Results.Json(null, type: typeof(Todo), context: StringJsonContext.Default));
1058var ex = Assert.Throws<InvalidOperationException>(() => Results.Json<Todo>(null, context: StringJsonContext.Default));
1183var value = new Todo(1);
1186var result = Results.NotFound(value) as NotFound<Todo>;
1221var value = new Todo(1);
1224var result = Results.Ok(value) as Ok<Todo>;