Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

Commit bcc158a

Browse files
committed
move BasketRepository to from Models folder to Repositories folders
1 parent 4460fee commit bcc158a

File tree

8 files changed

+12
-6
lines changed

8 files changed

+12
-6
lines changed

src/Services/Basket/Basket.API/Controllers/BasketController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
using Microsoft.AspNetCore.Authorization;
44
using Microsoft.AspNetCore.Mvc;
55
using Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Abstractions;
6+
using Microsoft.eShopOnContainers.Services.Basket.API.Infrastructure.Repositories;
67
using Microsoft.eShopOnContainers.Services.Basket.API.Model;
78
using Microsoft.eShopOnContainers.Services.Basket.API.Services;
89
using Microsoft.Extensions.Logging;
9-
using Serilog.Context;
1010
using System;
1111
using System.Net;
1212
using System.Threading.Tasks;

src/Services/Basket/Basket.API/Model/IBasketRepository.cs renamed to src/Services/Basket/Basket.API/Infrastructure/Repositories/IBasketRepository.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
using System.Collections.Generic;
1+
using Microsoft.eShopOnContainers.Services.Basket.API.Model;
2+
using System.Collections.Generic;
23
using System.Threading.Tasks;
34

4-
namespace Microsoft.eShopOnContainers.Services.Basket.API.Model
5+
namespace Microsoft.eShopOnContainers.Services.Basket.API.Infrastructure.Repositories
56
{
67
public interface IBasketRepository
78
{

src/Services/Basket/Basket.API/Model/RedisBasketRepository.cs renamed to src/Services/Basket/Basket.API/Infrastructure/Repositories/RedisBasketRepository.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
using Microsoft.Extensions.Logging;
1+
using Microsoft.eShopOnContainers.Services.Basket.API.Model;
2+
using Microsoft.Extensions.Logging;
23
using Newtonsoft.Json;
34
using StackExchange.Redis;
45
using System.Collections.Generic;
56
using System.Linq;
67
using System.Threading.Tasks;
78

8-
namespace Microsoft.eShopOnContainers.Services.Basket.API.Model
9+
namespace Microsoft.eShopOnContainers.Services.Basket.API.Infrastructure.Repositories
910
{
1011
public class RedisBasketRepository : IBasketRepository
1112
{

src/Services/Basket/Basket.API/IntegrationEvents/EventHandling/OrderStartedIntegrationEventHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using Basket.API.IntegrationEvents.Events;
22
using Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Abstractions;
33
using Microsoft.eShopOnContainers.Services.Basket.API;
4-
using Microsoft.eShopOnContainers.Services.Basket.API.Model;
4+
using Microsoft.eShopOnContainers.Services.Basket.API.Infrastructure.Repositories;
55
using Microsoft.Extensions.Logging;
66
using Serilog.Context;
77
using System;

src/Services/Basket/Basket.API/IntegrationEvents/EventHandling/ProductPriceChangedIntegrationEventHandler.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Abstractions;
2+
using Microsoft.eShopOnContainers.Services.Basket.API.Infrastructure.Repositories;
23
using Microsoft.eShopOnContainers.Services.Basket.API.IntegrationEvents.Events;
34
using Microsoft.eShopOnContainers.Services.Basket.API.Model;
45
using Microsoft.Extensions.Logging;

src/Services/Basket/Basket.API/Startup.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
using Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Abstractions;
2020
using Microsoft.eShopOnContainers.BuildingBlocks.EventBusRabbitMQ;
2121
using Microsoft.eShopOnContainers.BuildingBlocks.EventBusServiceBus;
22+
using Microsoft.eShopOnContainers.Services.Basket.API.Infrastructure.Repositories;
2223
using Microsoft.eShopOnContainers.Services.Basket.API.IntegrationEvents.EventHandling;
2324
using Microsoft.eShopOnContainers.Services.Basket.API.IntegrationEvents.Events;
2425
using Microsoft.eShopOnContainers.Services.Basket.API.Model;

src/Services/Basket/Basket.FunctionalTests/RedisBasketRepositoryTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using Basket.FunctionalTests.Base;
22
using Microsoft.eShopOnContainers.Services.Basket.API;
3+
using Microsoft.eShopOnContainers.Services.Basket.API.Infrastructure.Repositories;
34
using Microsoft.eShopOnContainers.Services.Basket.API.Model;
45
using Microsoft.Extensions.DependencyInjection;
56
using Microsoft.Extensions.Logging;

src/Services/Basket/Basket.UnitTests/Application/BasketWebApiTest.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using Microsoft.AspNetCore.Mvc;
55
using Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Abstractions;
66
using Microsoft.eShopOnContainers.Services.Basket.API.Controllers;
7+
using Microsoft.eShopOnContainers.Services.Basket.API.Infrastructure.Repositories;
78
using Microsoft.eShopOnContainers.Services.Basket.API.Model;
89
using Microsoft.Extensions.Logging;
910
using Moq;

0 commit comments

Comments
 (0)