Removed all the unused directives in the Solution with the assistance of Resharper

This commit is contained in:
Hemant Kumar Dundigalla
2018-10-06 23:21:15 +01:00
parent 1b5b179c7f
commit 6299d5ccc7
36 changed files with 18 additions and 74 deletions

View File

@@ -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

View File

@@ -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
{ {

View File

@@ -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
{ {

View File

@@ -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;

View File

@@ -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

View File

@@ -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
{ {

View File

@@ -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;

View File

@@ -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
{ {

View File

@@ -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

View File

@@ -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;

View File

@@ -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
{ {

View File

@@ -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
{ {

View File

@@ -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;

View File

@@ -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;

View File

@@ -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
{ {

View File

@@ -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
{ {

View File

@@ -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
{ {

View File

@@ -1,4 +1,3 @@
@using Microsoft.eShopWeb.Web.ViewModels.Account
@model LoginWith2faViewModel @model LoginWith2faViewModel
@{ @{
ViewData["Title"] = "Two-factor authentication"; ViewData["Title"] = "Two-factor authentication";

View File

@@ -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";

View File

@@ -1,4 +1,3 @@
@using Microsoft.eShopWeb.Web.ViewModels.Account
@model LoginViewModel @model LoginViewModel
@{ @{
ViewData["Title"] = "Log in"; ViewData["Title"] = "Log in";

View File

@@ -1,5 +1,4 @@
@using Microsoft.eShopWeb.Web.ViewModels @{
@{
ViewData["Title"] = "Checkout Complete"; ViewData["Title"] = "Checkout Complete";
@model BasketViewModel @model BasketViewModel
} }

View File

@@ -1,5 +1,4 @@
@using Microsoft.eShopWeb.Web.ViewModels @model BasketViewModel
@model BasketViewModel
@{ @{
ViewData["Title"] = "Basket"; ViewData["Title"] = "Basket";
} }

View File

@@ -1,5 +1,4 @@
@using Microsoft.eShopWeb.Web.ViewModels @model OrderViewModel
@model OrderViewModel
@{ @{
ViewData["Title"] = "My Order History"; ViewData["Title"] = "My Order History";
} }

View File

@@ -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";
} }

View File

@@ -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"> <section class="col-lg-4 col-md-5 col-xs-12">
<div class="esh-identity"> <div class="esh-identity">

View File

@@ -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

View File

@@ -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";

View File

@@ -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;

View File

@@ -1,5 +1,4 @@
@page @page
@using System.Linq;
@model IndexModel @model IndexModel
@{ @{
ViewData["Title"] = "My Order History"; ViewData["Title"] = "My Order History";

View File

@@ -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"> <section class="col-lg-4 col-md-5 col-xs-12">
<div class="esh-identity"> <div class="esh-identity">

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;