Skip to content
Open
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
@@ -0,0 +1,13 @@
using Application.Services.FindeksService;
using Infrastructure.OutServices;

namespace Infrastructure.Adapters.FakeFindeks;

public class FakeFindeksServiceAdapter : IFindeksService
{
public short GetScore(string identityNumber)
{
FakeFindeksService service = new();
return service.GetFindeksScore(identityNumber);
}
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Application.Services.FindeksService;
using Application.Services.ImageService;
using Application.Services.POSService;
using Infrastructure.Adapters.FakeFindeksService;
using Infrastructure.Adapters.FakeFindeks;
using Infrastructure.Adapters.FakePOSService;
using Infrastructure.Adapters.ImageService;
using Microsoft.Extensions.DependencyInjection;
Expand Down
17 changes: 17 additions & 0 deletions src/rentACar/Infrastructure/OutServices/FakeFindeksService.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Infrastructure.OutServices;

public class FakeFindeksService
{
public short GetFindeksScore(string identityNumber)
{
Random random = new();
short score = Convert.ToInt16(random.Next(1900));
return score;
}
}