-
-
Todo List Antiforgery Sample
-
-
-
-
-
- | TODO List |
-
-
-
- | {{$index + 1}} |
-
- {{item.name}}
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/samples/AntiforgerySample/wwwroot/app.js b/samples/AntiforgerySample/wwwroot/app.js
deleted file mode 100644
index f57425a553..0000000000
--- a/samples/AntiforgerySample/wwwroot/app.js
+++ /dev/null
@@ -1,4 +0,0 @@
-angular.module('TODO', [
- 'TODO.controllers',
- 'TODO.services'
-]);
\ No newline at end of file
diff --git a/samples/AntiforgerySample/wwwroot/controllers.js b/samples/AntiforgerySample/wwwroot/controllers.js
deleted file mode 100644
index df35c5cab0..0000000000
--- a/samples/AntiforgerySample/wwwroot/controllers.js
+++ /dev/null
@@ -1,21 +0,0 @@
-angular.module('TODO.controllers', []).
-controller('todoController', function ($scope, todoApi) {
- $scope.itemList = [];
- $scope.item = {};
-
- $scope.refresh = function (item) {
- todoApi.getItems().success(function (response) {
- $scope.itemList = response;
- });
- };
-
- $scope.create = function (item) {
- todoApi.create(item).success(function (response) {
- $scope.item = {};
- $scope.refresh();
- });
- };
-
- // Load initial items
- $scope.refresh();
-});
\ No newline at end of file
diff --git a/samples/AntiforgerySample/wwwroot/services.js b/samples/AntiforgerySample/wwwroot/services.js
deleted file mode 100644
index be27281ba6..0000000000
--- a/samples/AntiforgerySample/wwwroot/services.js
+++ /dev/null
@@ -1,22 +0,0 @@
-angular.module('TODO.services', []).
- factory('todoApi', function ($http) {
-
- var todoApi = {};
-
- todoApi.getItems = function () {
- return $http({
- method: 'GET',
- url: '/api/items'
- });
- }
-
- todoApi.create = function (item) {
- return $http({
- method: 'POST',
- url: '/api/items',
- data: item
- });
- };
-
- return todoApi;
- });
\ No newline at end of file
diff --git a/test/Microsoft.AspNetCore.Antiforgery.FunctionalTests/AntiForgerySampleTestFixture.cs b/test/Microsoft.AspNetCore.Antiforgery.FunctionalTests/AntiForgerySampleTestFixture.cs
deleted file mode 100644
index 5958064a0c..0000000000
--- a/test/Microsoft.AspNetCore.Antiforgery.FunctionalTests/AntiForgerySampleTestFixture.cs
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright (c) .NET Foundation. All rights reserved.
-// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
-
-using System;
-using System.Collections.Generic;
-using System.Net.Http;
-using Microsoft.AspNetCore.Hosting;
-using Microsoft.AspNetCore.TestHost;
-using Microsoft.Extensions.Configuration;
-
-namespace Microsoft.AspNetCore.Antiforgery.FunctionalTests
-{
- public class AntiForgerySampleTestFixture : IDisposable
- {
- private readonly TestServer _server;
-
- public AntiForgerySampleTestFixture()
- {
- var configurationBuilder = new ConfigurationBuilder();
-
- configurationBuilder.AddInMemoryCollection(new[]
- {
- new KeyValuePair