Add more unit tests for the service - fix some found bugs
This commit is contained in:
parent
12235a62a2
commit
a67e15bbb3
4 changed files with 401 additions and 8 deletions
|
|
@ -47,6 +47,7 @@ public interface IAppUserReadingProfileRepository
|
|||
|
||||
void Add(AppUserReadingProfile readingProfile);
|
||||
void Add(SeriesReadingProfile readingProfile);
|
||||
void Add(LibraryReadingProfile readingProfile);
|
||||
void Attach(AppUserReadingProfile readingProfile);
|
||||
void Update(AppUserReadingProfile readingProfile);
|
||||
void Update(SeriesReadingProfile readingProfile);
|
||||
|
|
@ -184,6 +185,11 @@ public class AppUserReadingProfileRepository(DataContext context, IMapper mapper
|
|||
context.SeriesReadingProfile.Add(readingProfile);
|
||||
}
|
||||
|
||||
public void Add(LibraryReadingProfile readingProfile)
|
||||
{
|
||||
context.LibraryReadingProfile.Add(readingProfile);
|
||||
}
|
||||
|
||||
public void Attach(AppUserReadingProfile readingProfile)
|
||||
{
|
||||
context.AppUserReadingProfile.Attach(readingProfile);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue