switched to xunit

This commit is contained in:
2024-05-03 18:49:51 -06:00
parent aab38c3e9b
commit 26bf2bbbd1
34 changed files with 643 additions and 298 deletions

View File

@@ -0,0 +1,23 @@
using Akka.Actor;
using LocalModels;
public class LocalStorageCache(IActorRef storageActor) : IFileStorageManager
{
private readonly IActorRef storageActor = storageActor;
public async Task<IEnumerable<string>> GetEmptyDirectories()
{
return await storageActor.Ask<IEnumerable<string>>(new EmptyDirectoryAsk());
}
public async Task<IEnumerable<LocalCourse>> LoadSavedCourses()
{
return await storageActor.Ask<IEnumerable<LocalCourse>>(new SavedCoursesAsk());
}
public async Task SaveCourseAsync(LocalCourse course, LocalCourse? previouslyStoredCourse)
{
await storageActor.Ask<SaveCoursesResponseSuccess>(new SaveCoursesRequest(course, previouslyStoredCourse));
}
}