public async Task TestWidgetExists(int id)
        {
            using (var manager = new TestContextManager <TestContext>())
            {
                using (var ctx = new TestContext(manager.Options))
                {
                    var widget = await ctx.FindAsync <Widget>(id);

                    Assert.Equal(id, widget.Id);
                }
            }
        }
        public async Task WhenIReadAnObjectFromTheDBItExists()
        {
            using (var manager = new TestContextManager <TestContext>())
            {
                using (var ctx = new TestContext(manager.Options))
                {
                    var widget = await ctx.FindAsync <Widget>(1);

                    Assert.Equal(1, widget.Id);
                }
            }
        }
Ejemplo n.º 3
0
 public TestinatorFixture()
 {
     _testContextManager = new TestContextManager <TContext>();
 }