Removed all the unused directives in the Solution with the assistance of Resharper
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
using Microsoft.eShopWeb.ApplicationCore.Interfaces;
|
using Microsoft.eShopWeb.ApplicationCore.Interfaces;
|
||||||
using Ardalis.GuardClauses;
|
using Ardalis.GuardClauses;
|
||||||
using Microsoft.eShopWeb.ApplicationCore.Entities;
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace Microsoft.eShopWeb.ApplicationCore.Entities.BuyerAggregate
|
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
|
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
|
public class CatalogBrand : BaseEntity
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
using Microsoft.eShopWeb.ApplicationCore.Interfaces;
|
using Microsoft.eShopWeb.ApplicationCore.Interfaces;
|
||||||
using Ardalis.GuardClauses;
|
using Ardalis.GuardClauses;
|
||||||
using Microsoft.eShopWeb.ApplicationCore.Entities;
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
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
|
public class OrderItem : BaseEntity
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
using Microsoft.eShopWeb.ApplicationCore.Interfaces;
|
using Microsoft.eShopWeb.ApplicationCore.Interfaces;
|
||||||
using Microsoft.eShopWeb;
|
|
||||||
|
|
||||||
namespace Microsoft.eShopWeb.ApplicationCore.Services
|
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 Microsoft.Extensions.Logging;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
using Microsoft.EntityFrameworkCore.Metadata;
|
using Microsoft.EntityFrameworkCore.Metadata;
|
||||||
using Microsoft.EntityFrameworkCore.Migrations;
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
namespace Microsoft.eShopWeb.Infrastructure.Data.Migrations
|
namespace Microsoft.eShopWeb.Infrastructure.Data.Migrations
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,11 +1,8 @@
|
|||||||
// <auto-generated />
|
// <auto-generated />
|
||||||
using Microsoft.eShopWeb.Infrastructure.Data;
|
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||||
using Microsoft.EntityFrameworkCore.Metadata;
|
using Microsoft.EntityFrameworkCore.Metadata;
|
||||||
using Microsoft.EntityFrameworkCore.Migrations;
|
|
||||||
using Microsoft.EntityFrameworkCore.Storage;
|
|
||||||
using Microsoft.EntityFrameworkCore.Storage.Internal;
|
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace Microsoft.eShopWeb.Infrastructure.Data.Migrations
|
namespace Microsoft.eShopWeb.Infrastructure.Data.Migrations
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using Microsoft.EntityFrameworkCore.Migrations;
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
using Microsoft.EntityFrameworkCore.Metadata;
|
using Microsoft.EntityFrameworkCore.Metadata;
|
||||||
|
|
||||||
|
|||||||
@@ -2,8 +2,6 @@
|
|||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||||
using Microsoft.EntityFrameworkCore.Metadata;
|
using Microsoft.EntityFrameworkCore.Metadata;
|
||||||
using Microsoft.EntityFrameworkCore.Migrations;
|
|
||||||
using Microsoft.eShopWeb.Infrastructure.Identity;
|
|
||||||
|
|
||||||
namespace Microsoft.eShopWeb.Infrastructure.Identity.Migrations
|
namespace Microsoft.eShopWeb.Infrastructure.Identity.Migrations
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
using Microsoft.eShopWeb.Web.Services;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace Microsoft.eShopWeb.Web.Controllers.Api
|
namespace Microsoft.eShopWeb.Web.Controllers.Api
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,8 +2,6 @@
|
|||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Microsoft.AspNetCore.Authorization;
|
using Microsoft.AspNetCore.Authorization;
|
||||||
using Microsoft.eShopWeb.Web.ViewModels;
|
using Microsoft.eShopWeb.Web.ViewModels;
|
||||||
using System;
|
|
||||||
using Microsoft.eShopWeb.ApplicationCore.Entities.OrderAggregate;
|
|
||||||
using Microsoft.eShopWeb.ApplicationCore.Interfaces;
|
using Microsoft.eShopWeb.ApplicationCore.Interfaces;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using Microsoft.eShopWeb.ApplicationCore.Specifications;
|
using Microsoft.eShopWeb.ApplicationCore.Specifications;
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
using Microsoft.eShopWeb.Infrastructure.Identity;
|
using Microsoft.eShopWeb.Infrastructure.Identity;
|
||||||
using Microsoft.AspNetCore.Http;
|
|
||||||
using Microsoft.AspNetCore.Identity;
|
using Microsoft.AspNetCore.Identity;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Microsoft.eShopWeb;
|
|
||||||
using Microsoft.eShopWeb.Web.Interfaces;
|
using Microsoft.eShopWeb.Web.Interfaces;
|
||||||
using Microsoft.eShopWeb.Web.ViewModels;
|
using Microsoft.eShopWeb.Web.ViewModels;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
using System;
|
using System.ComponentModel.DataAnnotations;
|
||||||
using System.ComponentModel.DataAnnotations;
|
|
||||||
|
|
||||||
namespace Microsoft.eShopWeb.Web.ViewModels.Account
|
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
|
public class TwoFactorAuthenticationViewModel
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,8 +1,4 @@
|
|||||||
using System;
|
namespace Microsoft.eShopWeb.Web.ViewModels
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.ComponentModel.DataAnnotations;
|
|
||||||
|
|
||||||
namespace Microsoft.eShopWeb.Web.ViewModels
|
|
||||||
{
|
{
|
||||||
public class OrderItemViewModel
|
public class OrderItemViewModel
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
@using Microsoft.eShopWeb.Web.ViewModels.Account
|
|
||||||
@model LoginWith2faViewModel
|
@model LoginWith2faViewModel
|
||||||
@{
|
@{
|
||||||
ViewData["Title"] = "Two-factor authentication";
|
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
|
@model RegisterViewModel
|
||||||
@{
|
@{
|
||||||
ViewData["Title"] = "Register";
|
ViewData["Title"] = "Register";
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
@using Microsoft.eShopWeb.Web.ViewModels.Account
|
|
||||||
@model LoginViewModel
|
@model LoginViewModel
|
||||||
@{
|
@{
|
||||||
ViewData["Title"] = "Log in";
|
ViewData["Title"] = "Log in";
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
@using Microsoft.eShopWeb.Web.ViewModels
|
@{
|
||||||
@{
|
|
||||||
ViewData["Title"] = "Checkout Complete";
|
ViewData["Title"] = "Checkout Complete";
|
||||||
@model BasketViewModel
|
@model BasketViewModel
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
@using Microsoft.eShopWeb.Web.ViewModels
|
@model BasketViewModel
|
||||||
@model BasketViewModel
|
|
||||||
@{
|
@{
|
||||||
ViewData["Title"] = "Basket";
|
ViewData["Title"] = "Basket";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
@using Microsoft.eShopWeb.Web.ViewModels
|
@model OrderViewModel
|
||||||
@model OrderViewModel
|
|
||||||
@{
|
@{
|
||||||
ViewData["Title"] = "My Order History";
|
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";
|
ViewData["Title"] = "My Order History";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
@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">
|
<section class="col-lg-4 col-md-5 col-xs-12">
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
using Microsoft.eShopWeb.RazorPages.ViewModels;
|
using Microsoft.eShopWeb.RazorPages.ViewModels;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace Microsoft.eShopWeb.RazorPages.Interfaces
|
namespace Microsoft.eShopWeb.RazorPages.Interfaces
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
@page
|
@page
|
||||||
@using System.Collections.Generic
|
|
||||||
@using Microsoft.AspNetCore.Http
|
|
||||||
@using Microsoft.AspNetCore.Http.Authentication
|
|
||||||
@model SigninModel
|
@model SigninModel
|
||||||
@{
|
@{
|
||||||
ViewData["Title"] = "Log in";
|
ViewData["Title"] = "Log in";
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
|
||||||
using Microsoft.AspNetCore.Mvc.RazorPages;
|
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||||
using Microsoft.eShopWeb.RazorPages.ViewModels;
|
using Microsoft.eShopWeb.RazorPages.ViewModels;
|
||||||
using Microsoft.eShopWeb.RazorPages.Interfaces;
|
using Microsoft.eShopWeb.RazorPages.Interfaces;
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
@page
|
@page
|
||||||
@using System.Linq;
|
|
||||||
@model IndexModel
|
@model IndexModel
|
||||||
@{
|
@{
|
||||||
ViewData["Title"] = "My Order History";
|
ViewData["Title"] = "My Order History";
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
@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">
|
<section class="col-lg-4 col-md-5 col-xs-12">
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
using Microsoft.eShopWeb.ApplicationCore.Interfaces;
|
using Microsoft.eShopWeb.ApplicationCore.Interfaces;
|
||||||
using Microsoft.eShopWeb.Infrastructure.Identity;
|
using Microsoft.eShopWeb.Infrastructure.Identity;
|
||||||
using Microsoft.AspNetCore.Http;
|
|
||||||
using Microsoft.AspNetCore.Identity;
|
using Microsoft.AspNetCore.Identity;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using System.Threading.Tasks;
|
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 Microsoft.eShopWeb.Web.ViewModels;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using System.Linq;
|
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.Net.Http;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Xunit;
|
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 System.Linq;
|
||||||
using Xunit;
|
using Xunit;
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
using Microsoft.eShopWeb.ApplicationCore.Exceptions;
|
using Microsoft.eShopWeb.ApplicationCore.Exceptions;
|
||||||
using Microsoft.eShopWeb.ApplicationCore.Interfaces;
|
using Microsoft.eShopWeb.ApplicationCore.Interfaces;
|
||||||
using Microsoft.eShopWeb.ApplicationCore.Services;
|
using Microsoft.eShopWeb.ApplicationCore.Services;
|
||||||
using Microsoft.eShopWeb.ApplicationCore.Entities;
|
|
||||||
using Microsoft.eShopWeb.ApplicationCore.Entities.BasketAggregate;
|
using Microsoft.eShopWeb.ApplicationCore.Entities.BasketAggregate;
|
||||||
using Moq;
|
using Moq;
|
||||||
using System;
|
using System;
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
using Microsoft.eShopWeb.ApplicationCore.Specifications;
|
using Microsoft.eShopWeb.ApplicationCore.Specifications;
|
||||||
using Microsoft.eShopWeb.ApplicationCore.Entities;
|
|
||||||
using Microsoft.eShopWeb.ApplicationCore.Entities.BasketAggregate;
|
using Microsoft.eShopWeb.ApplicationCore.Entities.BasketAggregate;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|||||||
Reference in New Issue
Block a user