diff --git a/api/FilterLists.Api/DependencyInjection/Extensions/ConfigureServicesCollection.cs b/api/FilterLists.Api/DependencyInjection/Extensions/ConfigureServicesCollection.cs index 200c1a3bf..67d926f24 100644 --- a/api/FilterLists.Api/DependencyInjection/Extensions/ConfigureServicesCollection.cs +++ b/api/FilterLists.Api/DependencyInjection/Extensions/ConfigureServicesCollection.cs @@ -4,7 +4,6 @@ namespace FilterLists.Api.DependencyInjection.Extensions { public static class ConfigureServicesCollection { - // ReSharper disable once UnusedMethodReturnValue.Global public static IServiceCollection RegisterFilterListsApi(this IServiceCollection services) { services.AddMvc(); diff --git a/api/FilterLists.Api/Program.cs b/api/FilterLists.Api/Program.cs index d532c0d2b..7c41ef281 100644 --- a/api/FilterLists.Api/Program.cs +++ b/api/FilterLists.Api/Program.cs @@ -3,11 +3,8 @@ namespace FilterLists.Api { - // ReSharper disable once UnusedMember.Global public class Program { - // ReSharper disable once UnusedMember.Global - // ReSharper disable once UnusedParameter.Global public static void Main(string[] args) { var host = new WebHostBuilder() diff --git a/api/FilterLists.Api/Startup.cs b/api/FilterLists.Api/Startup.cs index fe4bbe859..17e3fb090 100644 --- a/api/FilterLists.Api/Startup.cs +++ b/api/FilterLists.Api/Startup.cs @@ -9,7 +9,6 @@ namespace FilterLists.Api { - // ReSharper disable once ClassNeverInstantiated.Global public class Startup { public Startup(IHostingEnvironment env) @@ -22,7 +21,6 @@ public Startup(IHostingEnvironment env) Configuration = builder.Build(); } - // ReSharper disable once MemberCanBePrivate.Global public IConfigurationRoot Configuration { get; } public void ConfigureServices(IServiceCollection services) diff --git a/api/FilterLists.Data/Contexts/FilterListsDbContext.cs b/api/FilterLists.Data/Contexts/FilterListsDbContext.cs index 099272b62..c0d21215b 100644 --- a/api/FilterLists.Data/Contexts/FilterListsDbContext.cs +++ b/api/FilterLists.Data/Contexts/FilterListsDbContext.cs @@ -11,7 +11,6 @@ public FilterListsDbContext(DbContextOptions options) { } - // ReSharper disable once UnusedAutoPropertyAccessor.Global public DbSet List { get; set; } } } \ No newline at end of file diff --git a/api/FilterLists.Data/DependencyInjection/Extensions/ConfigureServicesCollection.cs b/api/FilterLists.Data/DependencyInjection/Extensions/ConfigureServicesCollection.cs index aeb89bab5..b3513d65b 100644 --- a/api/FilterLists.Data/DependencyInjection/Extensions/ConfigureServicesCollection.cs +++ b/api/FilterLists.Data/DependencyInjection/Extensions/ConfigureServicesCollection.cs @@ -11,7 +11,6 @@ namespace FilterLists.Data.DependencyInjection.Extensions { public static class ConfigureServicesCollection { - // ReSharper disable once UnusedMethodReturnValue.Global public static IServiceCollection RegisterFilterListsRepositories(this IServiceCollection services, IConfiguration configuration) { diff --git a/api/FilterLists.Data/Migrations/20170409192934_FilterListsMigration.Designer.cs b/api/FilterLists.Data/Migrations/20170409192934_FilterListsMigration.Designer.cs deleted file mode 100644 index fc004f869..000000000 --- a/api/FilterLists.Data/Migrations/20170409192934_FilterListsMigration.Designer.cs +++ /dev/null @@ -1,52 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using FilterLists.Data.Contexts; - -namespace FilterLists.Data.Migrations -{ - [DbContext(typeof(FilterListsDbContext))] - [Migration("20170409192934_FilterListsMigration")] - partial class FilterListsMigration - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "1.1.1"); - - modelBuilder.Entity("FilterLists.Models.List", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AddedDate"); - - b.Property("Description"); - - b.Property("DescriptionSourceUrl"); - - b.Property("DonateUrl"); - - b.Property("Email"); - - b.Property("ForumUrl"); - - b.Property("HomeUrl"); - - b.Property("IssuesUrl"); - - b.Property("ModifiedDate"); - - b.Property("Name"); - - b.Property("ViewUrl"); - - b.HasKey("Id"); - - b.ToTable("List"); - }); - } - } -} diff --git a/api/FilterLists.Data/Migrations/20170409192934_FilterListsMigration.cs b/api/FilterLists.Data/Migrations/20170409192934_FilterListsMigration.cs deleted file mode 100644 index 7e1cd9289..000000000 --- a/api/FilterLists.Data/Migrations/20170409192934_FilterListsMigration.cs +++ /dev/null @@ -1,37 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace FilterLists.Data.Migrations -{ - public partial class FilterListsMigration : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - "List", - table => new - { - Id = table.Column(nullable: false) - .Annotation("MySQL:AutoIncrement", true), - AddedDate = table.Column(nullable: false), - Description = table.Column(nullable: true), - DescriptionSourceUrl = table.Column(nullable: true), - DonateUrl = table.Column(nullable: true), - Email = table.Column(nullable: true), - ForumUrl = table.Column(nullable: true), - HomeUrl = table.Column(nullable: true), - IssuesUrl = table.Column(nullable: true), - ModifiedDate = table.Column(nullable: false), - Name = table.Column(nullable: true), - ViewUrl = table.Column(nullable: true) - }, - constraints: table => { table.PrimaryKey("PK_List", x => x.Id); }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - "List"); - } - } -} \ No newline at end of file diff --git a/api/FilterLists.Data/Migrations/20170410020231_AddListAnnotations.Designer.cs b/api/FilterLists.Data/Migrations/20170410020231_AddListAnnotations.Designer.cs deleted file mode 100644 index 8b4f8b615..000000000 --- a/api/FilterLists.Data/Migrations/20170410020231_AddListAnnotations.Designer.cs +++ /dev/null @@ -1,64 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using FilterLists.Data.Contexts; - -namespace FilterLists.Data.Migrations -{ - [DbContext(typeof(FilterListsDbContext))] - [Migration("20170410020231_AddListAnnotations")] - partial class AddListAnnotations - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "1.1.1"); - - modelBuilder.Entity("FilterLists.Models.List", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AddedDateUtc") - .ValueGeneratedOnAdd(); - - b.Property("Description") - .HasMaxLength(512); - - b.Property("DescriptionSourceUrl") - .HasMaxLength(6); - - b.Property("DonateUrl") - .HasMaxLength(6); - - b.Property("Email") - .HasMaxLength(7); - - b.Property("ForumUrl") - .HasMaxLength(6); - - b.Property("HomeUrl") - .HasMaxLength(6); - - b.Property("IssuesUrl") - .HasMaxLength(6); - - b.Property("ModifiedDateUtc") - .ValueGeneratedOnAddOrUpdate(); - - b.Property("Name") - .HasMaxLength(64); - - b.Property("ViewUrl") - .IsRequired() - .HasMaxLength(6); - - b.HasKey("Id"); - - b.ToTable("List"); - }); - } - } -} diff --git a/api/FilterLists.Data/Migrations/20170410020231_AddListAnnotations.cs b/api/FilterLists.Data/Migrations/20170410020231_AddListAnnotations.cs deleted file mode 100644 index d86651273..000000000 --- a/api/FilterLists.Data/Migrations/20170410020231_AddListAnnotations.cs +++ /dev/null @@ -1,181 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace FilterLists.Data.Migrations -{ - public partial class AddListAnnotations : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - //migrationBuilder.DropColumn( - // name: "AddedDate", - // table: "List"); - - //migrationBuilder.DropColumn( - // "ModifiedDate", - // "List"); - - migrationBuilder.AlterColumn( - "ViewUrl", - "List", - maxLength: 6, - nullable: false, - oldClrType: typeof(string), - oldNullable: true); - - migrationBuilder.AlterColumn( - "Name", - "List", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldNullable: true); - - migrationBuilder.AlterColumn( - "IssuesUrl", - "List", - maxLength: 6, - nullable: true, - oldClrType: typeof(string), - oldNullable: true); - - migrationBuilder.AlterColumn( - "HomeUrl", - "List", - maxLength: 6, - nullable: true, - oldClrType: typeof(string), - oldNullable: true); - - migrationBuilder.AlterColumn( - "ForumUrl", - "List", - maxLength: 6, - nullable: true, - oldClrType: typeof(string), - oldNullable: true); - - migrationBuilder.AlterColumn( - "Email", - "List", - maxLength: 7, - nullable: true, - oldClrType: typeof(string), - oldNullable: true); - - migrationBuilder.AlterColumn( - "DonateUrl", - "List", - maxLength: 6, - nullable: true, - oldClrType: typeof(string), - oldNullable: true); - - migrationBuilder.AlterColumn( - "DescriptionSourceUrl", - "List", - maxLength: 6, - nullable: true, - oldClrType: typeof(string), - oldNullable: true); - - migrationBuilder.AddColumn( - "AddedDateUtc", - "List", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - "ModifiedDateUtc", - "List", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - "AddedDateUtc", - "List"); - - migrationBuilder.DropColumn( - "ModifiedDateUtc", - "List"); - - migrationBuilder.AlterColumn( - "ViewUrl", - "List", - nullable: true, - oldClrType: typeof(string), - oldMaxLength: 6); - - migrationBuilder.AlterColumn( - "Name", - "List", - nullable: true, - oldClrType: typeof(string), - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - "IssuesUrl", - "List", - nullable: true, - oldClrType: typeof(string), - oldMaxLength: 6, - oldNullable: true); - - migrationBuilder.AlterColumn( - "HomeUrl", - "List", - nullable: true, - oldClrType: typeof(string), - oldMaxLength: 6, - oldNullable: true); - - migrationBuilder.AlterColumn( - "ForumUrl", - "List", - nullable: true, - oldClrType: typeof(string), - oldMaxLength: 6, - oldNullable: true); - - migrationBuilder.AlterColumn( - "Email", - "List", - nullable: true, - oldClrType: typeof(string), - oldMaxLength: 7, - oldNullable: true); - - migrationBuilder.AlterColumn( - "DonateUrl", - "List", - nullable: true, - oldClrType: typeof(string), - oldMaxLength: 6, - oldNullable: true); - - migrationBuilder.AlterColumn( - "DescriptionSourceUrl", - "List", - nullable: true, - oldClrType: typeof(string), - oldMaxLength: 6, - oldNullable: true); - - migrationBuilder.AddColumn( - "AddedDate", - "List", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - "ModifiedDate", - "List", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - } - } -} \ No newline at end of file diff --git a/api/FilterLists.Data/Migrations/20170410114552_FixListMaxMinAnnotations.Designer.cs b/api/FilterLists.Data/Migrations/20170410114552_FixListMaxMinAnnotations.Designer.cs deleted file mode 100644 index 1cfe2f522..000000000 --- a/api/FilterLists.Data/Migrations/20170410114552_FixListMaxMinAnnotations.Designer.cs +++ /dev/null @@ -1,64 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using FilterLists.Data.Contexts; - -namespace FilterLists.Data.Migrations -{ - [DbContext(typeof(FilterListsDbContext))] - [Migration("20170410114552_FixListMaxMinAnnotations")] - partial class FixListMaxMinAnnotations - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "1.1.1"); - - modelBuilder.Entity("FilterLists.Models.List", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AddedDateUtc") - .ValueGeneratedOnAdd(); - - b.Property("Description") - .HasMaxLength(512); - - b.Property("DescriptionSourceUrl") - .HasMaxLength(2083); - - b.Property("DonateUrl") - .HasMaxLength(2083); - - b.Property("Email") - .HasMaxLength(254); - - b.Property("ForumUrl") - .HasMaxLength(2083); - - b.Property("HomeUrl") - .HasMaxLength(2083); - - b.Property("IssuesUrl") - .HasMaxLength(2083); - - b.Property("ModifiedDateUtc") - .ValueGeneratedOnAddOrUpdate(); - - b.Property("Name") - .HasMaxLength(64); - - b.Property("ViewUrl") - .IsRequired() - .HasMaxLength(2083); - - b.HasKey("Id"); - - b.ToTable("List"); - }); - } - } -} diff --git a/api/FilterLists.Data/Migrations/20170410114552_FixListMaxMinAnnotations.cs b/api/FilterLists.Data/Migrations/20170410114552_FixListMaxMinAnnotations.cs deleted file mode 100644 index c0517417b..000000000 --- a/api/FilterLists.Data/Migrations/20170410114552_FixListMaxMinAnnotations.cs +++ /dev/null @@ -1,139 +0,0 @@ -using System; -using System.Collections.Generic; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace FilterLists.Data.Migrations -{ - public partial class FixListMaxMinAnnotations : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "ViewUrl", - table: "List", - maxLength: 2083, - nullable: false, - oldClrType: typeof(string), - oldMaxLength: 6); - - migrationBuilder.AlterColumn( - name: "IssuesUrl", - table: "List", - maxLength: 2083, - nullable: true, - oldClrType: typeof(string), - oldMaxLength: 6, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "HomeUrl", - table: "List", - maxLength: 2083, - nullable: true, - oldClrType: typeof(string), - oldMaxLength: 6, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ForumUrl", - table: "List", - maxLength: 2083, - nullable: true, - oldClrType: typeof(string), - oldMaxLength: 6, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Email", - table: "List", - maxLength: 254, - nullable: true, - oldClrType: typeof(string), - oldMaxLength: 7, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "DonateUrl", - table: "List", - maxLength: 2083, - nullable: true, - oldClrType: typeof(string), - oldMaxLength: 6, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "DescriptionSourceUrl", - table: "List", - maxLength: 2083, - nullable: true, - oldClrType: typeof(string), - oldMaxLength: 6, - oldNullable: true); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "ViewUrl", - table: "List", - maxLength: 6, - nullable: false, - oldClrType: typeof(string), - oldMaxLength: 2083); - - migrationBuilder.AlterColumn( - name: "IssuesUrl", - table: "List", - maxLength: 6, - nullable: true, - oldClrType: typeof(string), - oldMaxLength: 2083, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "HomeUrl", - table: "List", - maxLength: 6, - nullable: true, - oldClrType: typeof(string), - oldMaxLength: 2083, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ForumUrl", - table: "List", - maxLength: 6, - nullable: true, - oldClrType: typeof(string), - oldMaxLength: 2083, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Email", - table: "List", - maxLength: 7, - nullable: true, - oldClrType: typeof(string), - oldMaxLength: 254, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "DonateUrl", - table: "List", - maxLength: 6, - nullable: true, - oldClrType: typeof(string), - oldMaxLength: 2083, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "DescriptionSourceUrl", - table: "List", - maxLength: 6, - nullable: true, - oldClrType: typeof(string), - oldMaxLength: 2083, - oldNullable: true); - } - } -} diff --git a/api/FilterLists.Data/Migrations/20170410130859_SetDefaultDateValue.cs b/api/FilterLists.Data/Migrations/20170410130859_SetDefaultDateValue.cs deleted file mode 100644 index e73ebd45a..000000000 --- a/api/FilterLists.Data/Migrations/20170410130859_SetDefaultDateValue.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System; -using System.Collections.Generic; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace FilterLists.Data.Migrations -{ - public partial class SetDefaultDateValue : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - - } - } -} diff --git a/api/FilterLists.Data/Migrations/20170410130859_SetDefaultDateValue.Designer.cs b/api/FilterLists.Data/Migrations/20170410220415_Initial.Designer.cs similarity index 95% rename from api/FilterLists.Data/Migrations/20170410130859_SetDefaultDateValue.Designer.cs rename to api/FilterLists.Data/Migrations/20170410220415_Initial.Designer.cs index a93ddf059..53e893075 100644 --- a/api/FilterLists.Data/Migrations/20170410130859_SetDefaultDateValue.Designer.cs +++ b/api/FilterLists.Data/Migrations/20170410220415_Initial.Designer.cs @@ -8,8 +8,8 @@ namespace FilterLists.Data.Migrations { [DbContext(typeof(FilterListsDbContext))] - [Migration("20170410130859_SetDefaultDateValue")] - partial class SetDefaultDateValue + [Migration("20170410220415_Initial")] + partial class Initial { protected override void BuildTargetModel(ModelBuilder modelBuilder) { diff --git a/api/FilterLists.Data/Migrations/20170410220415_Initial.cs b/api/FilterLists.Data/Migrations/20170410220415_Initial.cs new file mode 100644 index 000000000..83b0f5813 --- /dev/null +++ b/api/FilterLists.Data/Migrations/20170410220415_Initial.cs @@ -0,0 +1,41 @@ +using System; +using System.Collections.Generic; +using Microsoft.EntityFrameworkCore.Migrations; + +namespace FilterLists.Data.Migrations +{ + public partial class Initial : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.CreateTable( + name: "List", + columns: table => new + { + Id = table.Column(nullable: false) + .Annotation("MySQL:AutoIncrement", true), + AddedDateUtc = table.Column(nullable: false), + Description = table.Column(maxLength: 512, nullable: true), + DescriptionSourceUrl = table.Column(maxLength: 2083, nullable: true), + DonateUrl = table.Column(maxLength: 2083, nullable: true), + Email = table.Column(maxLength: 254, nullable: true), + ForumUrl = table.Column(maxLength: 2083, nullable: true), + HomeUrl = table.Column(maxLength: 2083, nullable: true), + IssuesUrl = table.Column(maxLength: 2083, nullable: true), + ModifiedDateUtc = table.Column(nullable: false), + Name = table.Column(maxLength: 64, nullable: true), + ViewUrl = table.Column(maxLength: 2083, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_List", x => x.Id); + }); + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropTable( + name: "List"); + } + } +} diff --git a/api/FilterLists.Data/Repositories/ListRepository.cs b/api/FilterLists.Data/Repositories/ListRepository.cs index 34bb3dd81..c6e277259 100644 --- a/api/FilterLists.Data/Repositories/ListRepository.cs +++ b/api/FilterLists.Data/Repositories/ListRepository.cs @@ -6,7 +6,6 @@ namespace FilterLists.Data.Repositories { - // ReSharper disable once ClassNeverInstantiated.Global public class ListRepository : IListRepository { private readonly FilterListsDbContext _filterListsDbContext; diff --git a/api/FilterLists.Models/BaseEntity.cs b/api/FilterLists.Models/BaseEntity.cs index b77ffb8a1..0e5af86f4 100644 --- a/api/FilterLists.Models/BaseEntity.cs +++ b/api/FilterLists.Models/BaseEntity.cs @@ -4,11 +4,9 @@ using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; -using System.Diagnostics.CodeAnalysis; namespace FilterLists.Models { - [SuppressMessage("ReSharper", "UnusedMember.Global")] public abstract class BaseEntity { [Key] diff --git a/api/FilterLists.Models/List.cs b/api/FilterLists.Models/List.cs index c3ffda162..397c52b8e 100644 --- a/api/FilterLists.Models/List.cs +++ b/api/FilterLists.Models/List.cs @@ -3,8 +3,6 @@ namespace FilterLists.Models { - [SuppressMessage("ReSharper", "UnusedMember.Global")] - // ReSharper disable once ClassNeverInstantiated.Global public class List : BaseEntity { [MaxLength(512)] diff --git a/api/FilterLists.Services/DependencyInjection/Extensions/ConfigureServicesCollection.cs b/api/FilterLists.Services/DependencyInjection/Extensions/ConfigureServicesCollection.cs index 7399f3085..e13b3a29f 100644 --- a/api/FilterLists.Services/DependencyInjection/Extensions/ConfigureServicesCollection.cs +++ b/api/FilterLists.Services/DependencyInjection/Extensions/ConfigureServicesCollection.cs @@ -5,7 +5,6 @@ namespace FilterLists.Services.DependencyInjection.Extensions { public static class ConfigureServicesCollection { - // ReSharper disable once UnusedMethodReturnValue.Global public static IServiceCollection RegisterFilterListsServices(this IServiceCollection services) { services.TryAddScoped(); diff --git a/api/FilterLists.Services/ListService.cs b/api/FilterLists.Services/ListService.cs index b3bac9d1a..12f3bb81e 100644 --- a/api/FilterLists.Services/ListService.cs +++ b/api/FilterLists.Services/ListService.cs @@ -4,7 +4,6 @@ namespace FilterLists.Services { - // ReSharper disable once ClassNeverInstantiated.Global public class ListService : IListService { private readonly IListRepository _listRepository;