Exemplo n.º 1
0
        protected static PeopleDDDContext CreateNewContext()
        {
            var options = new DbContextOptionsBuilder <PeopleDDDContext>()
                          .UseInMemoryDatabase(Guid.NewGuid().ToString())
                          .EnableSensitiveDataLogging()
                          .Options;
            var context = new PeopleDDDContext(options);

            return(context);
        }
Exemplo n.º 2
0
 public PeopleRepository(PeopleDDDContext context) : base(context)
 {
 }
Exemplo n.º 3
0
 public BaseTest()
 {
     dbContext = CreateNewContext();
 }
Exemplo n.º 4
0
 public BaseRepositorio(PeopleDDDContext context)
 {
     this.context = context;
     dbSet        = this.context.Set <T>();
 }