public void Should_Work_Constructor_To_CentralDeErrosContext() { var FakeOptions = new DbContextOptionsBuilder <CentralDeErrosContext>().Options; IConfiguration _configuration = null; CentralDeErrosContext context = new CentralDeErrosContext(FakeOptions, _configuration); Assert.NotNull(context); }
public void FillWith <T>() where T : class { using (var context = new CentralDeErrosContext(FakeOptions, _configuration)) { if (context.Set <T>().Count() == 0) { foreach (T item in GetFakeData <T>()) { context.Set <T>().Add(item); } context.SaveChanges(); } } }
public RepositoryBase(CentralDeErrosContext context) { _context = context; }
public ErrorRepository(CentralDeErrosContext context) { this.context = context; }
public FrequencyRepository(CentralDeErrosContext context) { this.context = context; }
public LevelRepository(CentralDeErrosContext context) { _context = context; }
public ErrorLogRepository(CentralDeErrosContext context) : base(context) { }
public UserRepository(CentralDeErrosContext context) : base(context) { }
public CategoryRepository(CentralDeErrosContext context) { _context = context; }