Loose coupling of data models using interfaces
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using FireLance.Interfaces;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace DevConsole
|
||||
@@ -101,7 +102,7 @@ namespace DevConsole
|
||||
}
|
||||
#endregion
|
||||
|
||||
private static void PrintGameEntries(List<GameEntryModal> gameEntries)
|
||||
private static void PrintGameEntries(IEnumerable<IGameEntry> gameEntries)
|
||||
{
|
||||
foreach (var game in gameEntries)
|
||||
{
|
||||
@@ -113,7 +114,7 @@ namespace DevConsole
|
||||
}
|
||||
}
|
||||
|
||||
private static void PrintDirectories(List<DirectoriesModel> directoryEntries)
|
||||
private static void PrintDirectories(IEnumerable<IDirectories> directoryEntries)
|
||||
{
|
||||
foreach (var directory in directoryEntries)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user