Browse Source
Merge pull request #140 from hemantkd/Removing-unused-directives
Removed all the unused directives in the Solution with the assistance…
main
Eric Fleming
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
36 changed files with
18 additions and
74 deletions
-
src/ApplicationCore/Entities/BuyerAggregate/Buyer.cs
-
src/ApplicationCore/Entities/BuyerAggregate/PaymentMethod.cs
-
src/ApplicationCore/Entities/CatalogBrand.cs
-
src/ApplicationCore/Entities/OrderAggregate/Order.cs
-
src/ApplicationCore/Entities/OrderAggregate/OrderItem.cs
-
src/ApplicationCore/Services/UriComposer.cs
-
src/Infrastructure/Data/CatalogContextSeed.cs
-
src/Infrastructure/Data/Migrations/20171018175735_Initial.cs
-
src/Infrastructure/Data/Migrations/CatalogContextModelSnapshot.cs
-
src/Infrastructure/Identity/Migrations/20170822214310_InitialIdentityModel.cs
-
src/Infrastructure/Identity/Migrations/AppIdentityDbContextModelSnapshot.cs
-
src/Web/Controllers/Api/BaseApiController.cs
-
src/Web/Controllers/OrderController.cs
-
src/Web/ViewComponents/Basket.cs
-
src/Web/ViewModels/Account/RegisterViewModel.cs
-
src/Web/ViewModels/Manage/TwoFactorAuthenticationViewModel.cs
-
src/Web/ViewModels/OrderItemViewModel.cs
-
src/Web/Views/Account/LoginWith2fa.cshtml
-
src/Web/Views/Account/Register.cshtml
-
src/Web/Views/Account/Signin.cshtml
-
src/Web/Views/Basket/Checkout.cshtml
-
src/Web/Views/Basket/Index.cshtml
-
src/Web/Views/Order/Detail.cshtml
-
src/Web/Views/Order/Index.cshtml
-
src/Web/Views/Shared/_LoginPartial.cshtml
-
src/WebRazorPages/Interfaces/IBasketViewModelService.cs
-
src/WebRazorPages/Pages/Account/Signin.cshtml
-
src/WebRazorPages/Pages/Index.cshtml.cs
-
src/WebRazorPages/Pages/Order/Index.cshtml
-
src/WebRazorPages/Pages/Shared/_LoginPartial.cshtml
-
src/WebRazorPages/ViewComponents/Basket.cs
-
tests/FunctionalTests/Web/Controllers/ApiCatalogControllerList.cs
-
tests/FunctionalTests/Web/Controllers/CatalogControllerIndex.cs
-
tests/UnitTests/ApplicationCore/Entities/BasketTests/AddItem.cs
-
tests/UnitTests/ApplicationCore/Services/BasketServiceTests/SetQuantities.cs
-
tests/UnitTests/ApplicationCore/Specifications/BasketWithItemsSpecification.cs
|
|
|
@ -1,6 +1,5 @@ |
|
|
|
using Microsoft.eShopWeb.ApplicationCore.Interfaces; |
|
|
|
using Ardalis.GuardClauses; |
|
|
|
using Microsoft.eShopWeb.ApplicationCore.Entities; |
|
|
|
using System.Collections.Generic; |
|
|
|
|
|
|
|
namespace Microsoft.eShopWeb.ApplicationCore.Entities.BuyerAggregate |
|
|
|
|
|
|
|
@ -1,6 +1,4 @@ |
|
|
|
using Microsoft.eShopWeb.ApplicationCore.Entities; |
|
|
|
|
|
|
|
namespace Microsoft.eShopWeb.ApplicationCore.Entities.BuyerAggregate |
|
|
|
namespace Microsoft.eShopWeb.ApplicationCore.Entities.BuyerAggregate |
|
|
|
{ |
|
|
|
public class PaymentMethod : BaseEntity |
|
|
|
{ |
|
|
|
|
|
|
|
@ -1,6 +1,4 @@ |
|
|
|
using System.Collections.Generic; |
|
|
|
|
|
|
|
namespace Microsoft.eShopWeb.ApplicationCore.Entities |
|
|
|
namespace Microsoft.eShopWeb.ApplicationCore.Entities |
|
|
|
{ |
|
|
|
public class CatalogBrand : BaseEntity |
|
|
|
{ |
|
|
|
|
|
|
|
@ -1,6 +1,5 @@ |
|
|
|
using Microsoft.eShopWeb.ApplicationCore.Interfaces; |
|
|
|
using Ardalis.GuardClauses; |
|
|
|
using Microsoft.eShopWeb.ApplicationCore.Entities; |
|
|
|
using System; |
|
|
|
using System.Collections.Generic; |
|
|
|
|
|
|
|
|
|
|
|
@ -1,6 +1,4 @@ |
|
|
|
using Microsoft.eShopWeb.ApplicationCore.Entities; |
|
|
|
|
|
|
|
namespace Microsoft.eShopWeb.ApplicationCore.Entities.OrderAggregate |
|
|
|
namespace Microsoft.eShopWeb.ApplicationCore.Entities.OrderAggregate |
|
|
|
{ |
|
|
|
|
|
|
|
public class OrderItem : BaseEntity |
|
|
|
|
|
|
|
@ -1,5 +1,4 @@ |
|
|
|
using Microsoft.eShopWeb.ApplicationCore.Interfaces; |
|
|
|
using Microsoft.eShopWeb; |
|
|
|
|
|
|
|
namespace Microsoft.eShopWeb.ApplicationCore.Services |
|
|
|
{ |
|
|
|
|
|
|
|
@ -1,5 +1,4 @@ |
|
|
|
using Microsoft.AspNetCore.Builder; |
|
|
|
using Microsoft.eShopWeb.ApplicationCore.Entities; |
|
|
|
using Microsoft.eShopWeb.ApplicationCore.Entities; |
|
|
|
using Microsoft.Extensions.Logging; |
|
|
|
using System; |
|
|
|
using System.Collections.Generic; |
|
|
|
|
|
|
|
@ -1,7 +1,6 @@ |
|
|
|
using Microsoft.EntityFrameworkCore.Metadata; |
|
|
|
using Microsoft.EntityFrameworkCore.Migrations; |
|
|
|
using System; |
|
|
|
using System.Collections.Generic; |
|
|
|
|
|
|
|
namespace Microsoft.eShopWeb.Infrastructure.Data.Migrations |
|
|
|
{ |
|
|
|
|
|
|
|
@ -1,11 +1,8 @@ |
|
|
|
// <auto-generated />
|
|
|
|
using Microsoft.eShopWeb.Infrastructure.Data; |
|
|
|
|
|
|
|
using Microsoft.EntityFrameworkCore; |
|
|
|
using Microsoft.EntityFrameworkCore.Infrastructure; |
|
|
|
using Microsoft.EntityFrameworkCore.Metadata; |
|
|
|
using Microsoft.EntityFrameworkCore.Migrations; |
|
|
|
using Microsoft.EntityFrameworkCore.Storage; |
|
|
|
using Microsoft.EntityFrameworkCore.Storage.Internal; |
|
|
|
using System; |
|
|
|
|
|
|
|
namespace Microsoft.eShopWeb.Infrastructure.Data.Migrations |
|
|
|
|
|
|
|
@ -1,5 +1,4 @@ |
|
|
|
using System; |
|
|
|
using System.Collections.Generic; |
|
|
|
using Microsoft.EntityFrameworkCore.Migrations; |
|
|
|
using Microsoft.EntityFrameworkCore.Metadata; |
|
|
|
|
|
|
|
|
|
|
|
@ -2,8 +2,6 @@ |
|
|
|
using Microsoft.EntityFrameworkCore; |
|
|
|
using Microsoft.EntityFrameworkCore.Infrastructure; |
|
|
|
using Microsoft.EntityFrameworkCore.Metadata; |
|
|
|
using Microsoft.EntityFrameworkCore.Migrations; |
|
|
|
using Microsoft.eShopWeb.Infrastructure.Identity; |
|
|
|
|
|
|
|
namespace Microsoft.eShopWeb.Infrastructure.Identity.Migrations |
|
|
|
{ |
|
|
|
|
|
|
|
@ -1,6 +1,4 @@ |
|
|
|
using Microsoft.eShopWeb.Web.Services; |
|
|
|
using Microsoft.AspNetCore.Mvc; |
|
|
|
using System.Threading.Tasks; |
|
|
|
using Microsoft.AspNetCore.Mvc; |
|
|
|
|
|
|
|
namespace Microsoft.eShopWeb.Web.Controllers.Api |
|
|
|
{ |
|
|
|
|
|
|
|
@ -2,8 +2,6 @@ |
|
|
|
using System.Threading.Tasks; |
|
|
|
using Microsoft.AspNetCore.Authorization; |
|
|
|
using Microsoft.eShopWeb.Web.ViewModels; |
|
|
|
using System; |
|
|
|
using Microsoft.eShopWeb.ApplicationCore.Entities.OrderAggregate; |
|
|
|
using Microsoft.eShopWeb.ApplicationCore.Interfaces; |
|
|
|
using System.Linq; |
|
|
|
using Microsoft.eShopWeb.ApplicationCore.Specifications; |
|
|
|
|
|
|
|
@ -1,8 +1,6 @@ |
|
|
|
using Microsoft.eShopWeb.Infrastructure.Identity; |
|
|
|
using Microsoft.AspNetCore.Http; |
|
|
|
using Microsoft.AspNetCore.Identity; |
|
|
|
using Microsoft.AspNetCore.Mvc; |
|
|
|
using Microsoft.eShopWeb; |
|
|
|
using Microsoft.eShopWeb.Web.Interfaces; |
|
|
|
using Microsoft.eShopWeb.Web.ViewModels; |
|
|
|
using System.Linq; |
|
|
|
|
|
|
|
@ -1,5 +1,4 @@ |
|
|
|
using System; |
|
|
|
using System.ComponentModel.DataAnnotations; |
|
|
|
using System.ComponentModel.DataAnnotations; |
|
|
|
|
|
|
|
namespace Microsoft.eShopWeb.Web.ViewModels.Account |
|
|
|
{ |
|
|
|
|
|
|
|
@ -1,6 +1,4 @@ |
|
|
|
using System.ComponentModel.DataAnnotations; |
|
|
|
|
|
|
|
namespace Microsoft.eShopWeb.Web.ViewModels.Manage |
|
|
|
namespace Microsoft.eShopWeb.Web.ViewModels.Manage |
|
|
|
{ |
|
|
|
public class TwoFactorAuthenticationViewModel |
|
|
|
{ |
|
|
|
|
|
|
|
@ -1,8 +1,4 @@ |
|
|
|
using System; |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.ComponentModel.DataAnnotations; |
|
|
|
|
|
|
|
namespace Microsoft.eShopWeb.Web.ViewModels |
|
|
|
namespace Microsoft.eShopWeb.Web.ViewModels |
|
|
|
{ |
|
|
|
public class OrderItemViewModel |
|
|
|
{ |
|
|
|
|
|
|
|
@ -1,4 +1,3 @@ |
|
|
|
@using Microsoft.eShopWeb.Web.ViewModels.Account |
|
|
|
@model LoginWith2faViewModel |
|
|
|
@{ |
|
|
|
ViewData["Title"] = "Two-factor authentication"; |
|
|
|
|
|
|
|
@ -1,7 +1,3 @@ |
|
|
|
@using System.Collections.Generic |
|
|
|
@using Microsoft.AspNetCore.Http |
|
|
|
@using Microsoft.AspNetCore.Http.Authentication |
|
|
|
@using Microsoft.eShopWeb.Web.ViewModels.Account |
|
|
|
@model RegisterViewModel |
|
|
|
@{ |
|
|
|
ViewData["Title"] = "Register"; |
|
|
|
|
|
|
|
@ -1,4 +1,3 @@ |
|
|
|
@using Microsoft.eShopWeb.Web.ViewModels.Account |
|
|
|
@model LoginViewModel |
|
|
|
@{ |
|
|
|
ViewData["Title"] = "Log in"; |
|
|
|
|
|
|
|
@ -1,5 +1,4 @@ |
|
|
|
@using Microsoft.eShopWeb.Web.ViewModels |
|
|
|
@{ |
|
|
|
@{ |
|
|
|
ViewData["Title"] = "Checkout Complete"; |
|
|
|
@model BasketViewModel |
|
|
|
} |
|
|
|
|
|
|
|
@ -1,5 +1,4 @@ |
|
|
|
@using Microsoft.eShopWeb.Web.ViewModels |
|
|
|
@model BasketViewModel |
|
|
|
@model BasketViewModel |
|
|
|
@{ |
|
|
|
ViewData["Title"] = "Basket"; |
|
|
|
} |
|
|
|
|
|
|
|
@ -1,5 +1,4 @@ |
|
|
|
@using Microsoft.eShopWeb.Web.ViewModels |
|
|
|
@model OrderViewModel |
|
|
|
@model OrderViewModel |
|
|
|
@{ |
|
|
|
ViewData["Title"] = "My Order History"; |
|
|
|
} |
|
|
|
|
|
|
|
@ -1,5 +1,4 @@ |
|
|
|
@using Microsoft.eShopWeb.Web.ViewModels |
|
|
|
@model IEnumerable<OrderViewModel> |
|
|
|
@model IEnumerable<OrderViewModel> |
|
|
|
@{ |
|
|
|
ViewData["Title"] = "My Order History"; |
|
|
|
} |
|
|
|
|
|
|
|
@ -1,6 +1,4 @@ |
|
|
|
@using Microsoft.AspNetCore.Identity |
|
|
|
|
|
|
|
@if (Context.User.Identity.IsAuthenticated) |
|
|
|
@if (Context.User.Identity.IsAuthenticated) |
|
|
|
{ |
|
|
|
<section class="col-lg-4 col-md-5 col-xs-12"> |
|
|
|
<div class="esh-identity"> |
|
|
|
|
|
|
|
@ -1,5 +1,4 @@ |
|
|
|
using Microsoft.eShopWeb.RazorPages.ViewModels; |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.Threading.Tasks; |
|
|
|
|
|
|
|
namespace Microsoft.eShopWeb.RazorPages.Interfaces |
|
|
|
|
|
|
|
@ -1,7 +1,4 @@ |
|
|
|
@page |
|
|
|
@using System.Collections.Generic |
|
|
|
@using Microsoft.AspNetCore.Http |
|
|
|
@using Microsoft.AspNetCore.Http.Authentication |
|
|
|
@model SigninModel |
|
|
|
@{ |
|
|
|
ViewData["Title"] = "Log in"; |
|
|
|
|
|
|
|
@ -1,5 +1,4 @@ |
|
|
|
using System.Threading.Tasks; |
|
|
|
using Microsoft.AspNetCore.Mvc; |
|
|
|
using Microsoft.AspNetCore.Mvc.RazorPages; |
|
|
|
using Microsoft.eShopWeb.RazorPages.ViewModels; |
|
|
|
using Microsoft.eShopWeb.RazorPages.Interfaces; |
|
|
|
|
|
|
|
@ -1,5 +1,4 @@ |
|
|
|
@page |
|
|
|
@using System.Linq; |
|
|
|
@model IndexModel |
|
|
|
@{ |
|
|
|
ViewData["Title"] = "My Order History"; |
|
|
|
|
|
|
|
@ -1,6 +1,4 @@ |
|
|
|
@using Microsoft.AspNetCore.Identity |
|
|
|
|
|
|
|
@if (Context.User.Identity.IsAuthenticated) |
|
|
|
@if (Context.User.Identity.IsAuthenticated) |
|
|
|
{ |
|
|
|
<section class="col-lg-4 col-md-5 col-xs-12"> |
|
|
|
<div class="esh-identity"> |
|
|
|
|
|
|
|
@ -1,6 +1,5 @@ |
|
|
|
using Microsoft.eShopWeb.ApplicationCore.Interfaces; |
|
|
|
using Microsoft.eShopWeb.Infrastructure.Identity; |
|
|
|
using Microsoft.AspNetCore.Http; |
|
|
|
using Microsoft.AspNetCore.Identity; |
|
|
|
using Microsoft.AspNetCore.Mvc; |
|
|
|
using System.Threading.Tasks; |
|
|
|
|
|
|
|
@ -1,5 +1,4 @@ |
|
|
|
using Microsoft.AspNetCore.Mvc.Testing; |
|
|
|
using Microsoft.eShopWeb.Web; |
|
|
|
using Microsoft.eShopWeb.Web; |
|
|
|
using Microsoft.eShopWeb.Web.ViewModels; |
|
|
|
using Newtonsoft.Json; |
|
|
|
using System.Linq; |
|
|
|
|
|
|
|
@ -1,5 +1,4 @@ |
|
|
|
using Microsoft.AspNetCore.Mvc.Testing; |
|
|
|
using Microsoft.eShopWeb.Web; |
|
|
|
using Microsoft.eShopWeb.Web; |
|
|
|
using System.Net.Http; |
|
|
|
using System.Threading.Tasks; |
|
|
|
using Xunit; |
|
|
|
|
|
|
|
@ -1,5 +1,4 @@ |
|
|
|
using Microsoft.eShopWeb.ApplicationCore.Entities; |
|
|
|
using Microsoft.eShopWeb.ApplicationCore.Entities.BasketAggregate; |
|
|
|
using Microsoft.eShopWeb.ApplicationCore.Entities.BasketAggregate; |
|
|
|
using System.Linq; |
|
|
|
using Xunit; |
|
|
|
|
|
|
|
|
|
|
|
@ -1,7 +1,6 @@ |
|
|
|
using Microsoft.eShopWeb.ApplicationCore.Exceptions; |
|
|
|
using Microsoft.eShopWeb.ApplicationCore.Interfaces; |
|
|
|
using Microsoft.eShopWeb.ApplicationCore.Services; |
|
|
|
using Microsoft.eShopWeb.ApplicationCore.Entities; |
|
|
|
using Microsoft.eShopWeb.ApplicationCore.Entities.BasketAggregate; |
|
|
|
using Moq; |
|
|
|
using System; |
|
|
|
|
|
|
|
@ -1,5 +1,4 @@ |
|
|
|
using Microsoft.eShopWeb.ApplicationCore.Specifications; |
|
|
|
using Microsoft.eShopWeb.ApplicationCore.Entities; |
|
|
|
using Microsoft.eShopWeb.ApplicationCore.Entities.BasketAggregate; |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.Linq; |
|
|
|
|