protected static PeopleDDDContext CreateNewContext() { var options = new DbContextOptionsBuilder <PeopleDDDContext>() .UseInMemoryDatabase(Guid.NewGuid().ToString()) .EnableSensitiveDataLogging() .Options; var context = new PeopleDDDContext(options); return(context); }
public PeopleRepository(PeopleDDDContext context) : base(context) { }
public BaseTest() { dbContext = CreateNewContext(); }
public BaseRepositorio(PeopleDDDContext context) { this.context = context; dbSet = this.context.Set <T>(); }