Answers for "c# Unit Test IDbContextFactory"

C#
0

c# Unit Test IDbContextFactory

mockDbFactory.Setup(f => f.CreateDbContext())
    .Returns(() => new SomeDbContext(new DbContextOptionsBuilder<SomeDbContext>()
        .UseInMemoryDatabase("InMemoryTest")
        .Options));
Posted by: Guest on March-30-2022

C# Answers by Framework

Browse Popular Code Answers by Language