Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ivanchuk/hotfix #136

Merged
merged 1 commit into from
May 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
using OutOfSchool.Services.Models;
using OutOfSchool.Services.Repository;
using OutOfSchool.WebApi.Extensions;
using OutOfSchool.WebApi.Models;
using OutOfSchool.WebApi.Services;
using ILogger = Serilog.ILogger;

Expand All @@ -23,7 +22,7 @@ public class RatingServiceTests
private IRatingService service;
private OutOfSchoolDbContext context;
private IRatingRepository ratingRepository;
private IEntityRepository<Workshop> workshopRepository;
private IWorkshopRepository workshopRepository;
private IProviderRepository providerRepository;
private Mock<IStringLocalizer<SharedResource>> localizer;
private Mock<ILogger> logger;
Expand All @@ -40,7 +39,7 @@ public void SetUp()
context = new OutOfSchoolDbContext(options);
localizer = new Mock<IStringLocalizer<SharedResource>>();
ratingRepository = new RatingRepository(context);
workshopRepository = new EntityRepository<Workshop>(context);
workshopRepository = new WorkshopRepository(context);
providerRepository = new ProviderRepository(context);
logger = new Mock<ILogger>();
service = new RatingService(ratingRepository, workshopRepository, providerRepository, logger.Object, localizer.Object);
Expand Down
4 changes: 2 additions & 2 deletions OutOfSchool/OutOfSchool.WebApi/Services/RatingService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace OutOfSchool.WebApi.Services
public class RatingService : IRatingService
{
private readonly IRatingRepository ratingRepository;
private readonly IEntityRepository<Workshop> workshopRepository;
private readonly IWorkshopRepository workshopRepository;
private readonly IProviderRepository providerRepository;
private readonly ILogger logger;
private readonly IStringLocalizer<SharedResource> localizer;
Expand All @@ -34,7 +34,7 @@ public class RatingService : IRatingService
/// <param name="localizer">Localizer.</param>
public RatingService(
IRatingRepository ratingRepository,
IEntityRepository<Workshop> workshopRepository,
IWorkshopRepository workshopRepository,
IProviderRepository providerRepository,
ILogger logger,
IStringLocalizer<SharedResource> localizer)
Expand Down