public void CreationTest()
        {
            var context = new HorseSenseTestContext();

            Assert.IsNotNull(context);
            Assert.AreEqual("Microsoft.EntityFrameworkCore.InMemory", context.Database.ProviderName);
        }
        public void TwoContextInSameMethodTest()
        {
            var context1 = new HorseSenseTestContext();

            Assert.IsNotNull(context1);

            context1.Horses.Add(new Horse {
                Name = "TwoContextInSameMethodTest"
            });
            context1.SaveChanges();
            Assert.AreEqual(1, context1.Horses.Count());
            Assert.AreEqual("TwoContextInSameMethodTest", context1.Horses.Single <Horse>().Name);

            var context2 = new HorseSenseTestContext();

            Assert.AreEqual(1, context2.Horses.Count());
            Assert.AreEqual("TwoContextInSameMethodTest", context2.Horses.Single <Horse>().Name);
        }