Browse Source

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

main
Hemant Kumar Dundigalla 7 years ago
parent
commit
6299d5ccc7
  1. 1
      src/ApplicationCore/Entities/BuyerAggregate/Buyer.cs
  2. 4
      src/ApplicationCore/Entities/BuyerAggregate/PaymentMethod.cs
  3. 4
      src/ApplicationCore/Entities/CatalogBrand.cs
  4. 1
      src/ApplicationCore/Entities/OrderAggregate/Order.cs
  5. 4
      src/ApplicationCore/Entities/OrderAggregate/OrderItem.cs
  6. 1
      src/ApplicationCore/Services/UriComposer.cs
  7. 3
      src/Infrastructure/Data/CatalogContextSeed.cs
  8. 1
      src/Infrastructure/Data/Migrations/20171018175735_Initial.cs
  9. 5
      src/Infrastructure/Data/Migrations/CatalogContextModelSnapshot.cs
  10. 1
      src/Infrastructure/Identity/Migrations/20170822214310_InitialIdentityModel.cs
  11. 2
      src/Infrastructure/Identity/Migrations/AppIdentityDbContextModelSnapshot.cs
  12. 4
      src/Web/Controllers/Api/BaseApiController.cs
  13. 2
      src/Web/Controllers/OrderController.cs
  14. 2
      src/Web/ViewComponents/Basket.cs
  15. 3
      src/Web/ViewModels/Account/RegisterViewModel.cs
  16. 4
      src/Web/ViewModels/Manage/TwoFactorAuthenticationViewModel.cs
  17. 6
      src/Web/ViewModels/OrderItemViewModel.cs
  18. 1
      src/Web/Views/Account/LoginWith2fa.cshtml
  19. 4
      src/Web/Views/Account/Register.cshtml
  20. 1
      src/Web/Views/Account/Signin.cshtml
  21. 3
      src/Web/Views/Basket/Checkout.cshtml
  22. 3
      src/Web/Views/Basket/Index.cshtml
  23. 3
      src/Web/Views/Order/Detail.cshtml
  24. 3
      src/Web/Views/Order/Index.cshtml
  25. 4
      src/Web/Views/Shared/_LoginPartial.cshtml
  26. 1
      src/WebRazorPages/Interfaces/IBasketViewModelService.cs
  27. 3
      src/WebRazorPages/Pages/Account/Signin.cshtml
  28. 1
      src/WebRazorPages/Pages/Index.cshtml.cs
  29. 1
      src/WebRazorPages/Pages/Order/Index.cshtml
  30. 4
      src/WebRazorPages/Pages/Shared/_LoginPartial.cshtml
  31. 1
      src/WebRazorPages/ViewComponents/Basket.cs
  32. 3
      tests/FunctionalTests/Web/Controllers/ApiCatalogControllerList.cs
  33. 3
      tests/FunctionalTests/Web/Controllers/CatalogControllerIndex.cs
  34. 3
      tests/UnitTests/ApplicationCore/Entities/BasketTests/AddItem.cs
  35. 1
      tests/UnitTests/ApplicationCore/Services/BasketServiceTests/SetQuantities.cs
  36. 1
      tests/UnitTests/ApplicationCore/Specifications/BasketWithItemsSpecification.cs

1
src/ApplicationCore/Entities/BuyerAggregate/Buyer.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

4
src/ApplicationCore/Entities/BuyerAggregate/PaymentMethod.cs

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

4
src/ApplicationCore/Entities/CatalogBrand.cs

@ -1,6 +1,4 @@
using System.Collections.Generic;
namespace Microsoft.eShopWeb.ApplicationCore.Entities
namespace Microsoft.eShopWeb.ApplicationCore.Entities
{
public class CatalogBrand : BaseEntity
{

1
src/ApplicationCore/Entities/OrderAggregate/Order.cs

@ -1,6 +1,5 @@
using Microsoft.eShopWeb.ApplicationCore.Interfaces;
using Ardalis.GuardClauses;
using Microsoft.eShopWeb.ApplicationCore.Entities;
using System;
using System.Collections.Generic;

4
src/ApplicationCore/Entities/OrderAggregate/OrderItem.cs

@ -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
src/ApplicationCore/Services/UriComposer.cs

@ -1,5 +1,4 @@
using Microsoft.eShopWeb.ApplicationCore.Interfaces;
using Microsoft.eShopWeb;
namespace Microsoft.eShopWeb.ApplicationCore.Services
{

3
src/Infrastructure/Data/CatalogContextSeed.cs

@ -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
src/Infrastructure/Data/Migrations/20171018175735_Initial.cs

@ -1,7 +1,6 @@
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
using System;
using System.Collections.Generic;
namespace Microsoft.eShopWeb.Infrastructure.Data.Migrations
{

5
src/Infrastructure/Data/Migrations/CatalogContextModelSnapshot.cs

@ -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
src/Infrastructure/Identity/Migrations/20170822214310_InitialIdentityModel.cs

@ -1,5 +1,4 @@
using System;
using System.Collections.Generic;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Metadata;

2
src/Infrastructure/Identity/Migrations/AppIdentityDbContextModelSnapshot.cs

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

4
src/Web/Controllers/Api/BaseApiController.cs

@ -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
src/Web/Controllers/OrderController.cs

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

2
src/Web/ViewComponents/Basket.cs

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

3
src/Web/ViewModels/Account/RegisterViewModel.cs

@ -1,5 +1,4 @@
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations;
namespace Microsoft.eShopWeb.Web.ViewModels.Account
{

4
src/Web/ViewModels/Manage/TwoFactorAuthenticationViewModel.cs

@ -1,6 +1,4 @@
using System.ComponentModel.DataAnnotations;
namespace Microsoft.eShopWeb.Web.ViewModels.Manage
namespace Microsoft.eShopWeb.Web.ViewModels.Manage
{
public class TwoFactorAuthenticationViewModel
{

6
src/Web/ViewModels/OrderItemViewModel.cs

@ -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
src/Web/Views/Account/LoginWith2fa.cshtml

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

4
src/Web/Views/Account/Register.cshtml

@ -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
src/Web/Views/Account/Signin.cshtml

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

3
src/Web/Views/Basket/Checkout.cshtml

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

3
src/Web/Views/Basket/Index.cshtml

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

3
src/Web/Views/Order/Detail.cshtml

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

3
src/Web/Views/Order/Index.cshtml

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

4
src/Web/Views/Shared/_LoginPartial.cshtml

@ -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
src/WebRazorPages/Interfaces/IBasketViewModelService.cs

@ -1,5 +1,4 @@
using Microsoft.eShopWeb.RazorPages.ViewModels;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace Microsoft.eShopWeb.RazorPages.Interfaces

3
src/WebRazorPages/Pages/Account/Signin.cshtml

@ -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
src/WebRazorPages/Pages/Index.cshtml.cs

@ -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
src/WebRazorPages/Pages/Order/Index.cshtml

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

4
src/WebRazorPages/Pages/Shared/_LoginPartial.cshtml

@ -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
src/WebRazorPages/ViewComponents/Basket.cs

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

3
tests/FunctionalTests/Web/Controllers/ApiCatalogControllerList.cs

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

3
tests/FunctionalTests/Web/Controllers/CatalogControllerIndex.cs

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

3
tests/UnitTests/ApplicationCore/Entities/BasketTests/AddItem.cs

@ -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
tests/UnitTests/ApplicationCore/Services/BasketServiceTests/SetQuantities.cs

@ -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
tests/UnitTests/ApplicationCore/Specifications/BasketWithItemsSpecification.cs

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

Loading…
Cancel
Save