public void Returns_typed_database_object()
        {
            var database = new InMemoryDatabaseFacade(
                TestHelpers.Instance.CreateContext(),
                Mock.Of<IDataStoreCreator>(),
                new LoggerFactory());

            Assert.Same(database, database.AsInMemory());
        }
        public void Returns_typed_database_object()
        {
            var database = new InMemoryDatabaseFacade(
                TestHelpers.Instance.CreateContext(),
                Mock.Of <IInMemoryDataStoreCreator>(),
                new LoggerFactory());

            Assert.Same(database, database.AsInMemory());
        }
Exemplo n.º 3
0
        public void Returns_typed_database_object()
        {
            var database = new InMemoryDatabaseFacade(
                new DbContextService <IModel>(() => null),
                Mock.Of <InMemoryDataStoreCreator>(),
                Mock.Of <InMemoryConnection>(),
                new LoggerFactory());

            Assert.Same(database, database.AsInMemory());
        }