- Created MSTestSettings.cs to enable parallel test execution. - Added StyleTests.cs and TitreTests.cs for unit testing of Style and Titre entities. - Implemented Webzine.Entity.Tests project with necessary configurations. - Created SeedDataLocal.cs and SeedDataSpotify.cs for local and Spotify data seeding. - Established repository contracts for Artiste, Commentaire, Style, and Titre. - Developed DbEntityRepository and LocalEntityRepository classes. - Set up Webzine.WebApplication with controllers, logging, and Docker support. - Configured NLog for logging and added necessary appsettings for development. - Created initial views and layout for the web application. - Added Dockerfile and docker-compose configuration for containerization.
29 lines
610 B
C#
29 lines
610 B
C#
// using Webzine.Entity;
|
|
|
|
namespace Webzine.Repository.Contracts
|
|
{
|
|
public interface ITitreRepository
|
|
{
|
|
// void Add(Titre titre);
|
|
|
|
// int Count();
|
|
|
|
// void Delete(Titre titre);
|
|
|
|
// Titre Find(int idTitre);
|
|
|
|
// IEnumerable<Titre> FindTitres(int offset, int limit);
|
|
|
|
// IEnumerable<Titre> FindAll();
|
|
|
|
// void IncrementNbLectures(Titre titre);
|
|
|
|
// void IncrementNbLikes(Titre titre);
|
|
|
|
// IEnumerable<Titre> Search(string mot);
|
|
|
|
// IEnumerable<Titre> SearchByStyle(string libelle);
|
|
|
|
// void Update(Titre titre);
|
|
}
|
|
} |