c# Unit Test IDbContextFactory

58

c# Unit Test IDbContextFactory -

mockDbFactory.Setup(f => f.CreateDbContext())
    .Returns(() => new SomeDbContext(new DbContextOptionsBuilder<SomeDbContext>()
        .UseInMemoryDatabase("InMemoryTest")
        .Options));

Comments

Submit
0 Comments