protected RepositoryTests()
        {
            InMemoryDatabase.CreateTable();

            this.Context = Substitute.For <IDatabaseContext>();
            this.Context.Connection.Returns(InMemoryDatabase.Connection);
        }
Esempio n. 2
0
        protected RepositoryTests()
        {
            var fakeDatabase = new InMemoryDatabase();

            fakeDatabase.CreateTable <T>();

            this.Context = Substitute.For <IDatabaseContext>();
            this.Context.Connection.Returns(fakeDatabase.OpenConnection());
        }