Skip to content

Commit 010b4d4

Browse files
committed
Implement bot repository again
1 parent ffbd535 commit 010b4d4

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
using RealTimeWeatherMonitoringApp.Domain.Interfaces.Repository;
2+
using RealTimeWeatherMonitoringApp.Domain.Models;
3+
using RealTimeWeatherMonitoringApp.Infrastructure.Interfaces;
4+
5+
namespace RealTimeWeatherMonitoringApp.Infrastructure.Repository;
6+
7+
public class BotRepository<TEvaluated> : IBotRepository<TEvaluated>
8+
{
9+
private readonly IBotInitializer<TEvaluated> _botInitializer;
10+
public BotRepository(IBotInitializer<TEvaluated> botInitializer) => _botInitializer = botInitializer;
11+
12+
public IEnumerable<Bot<TEvaluated>> GetAll() => _botInitializer.InitializeAndGetAllBots();
13+
}

0 commit comments

Comments
 (0)