public void Returns_typed_database_object() { var database = new SqlServerDatabase( new DbContextService <IModel>(() => null), Mock.Of <SqlServerDataStoreCreator>(), Mock.Of <SqlServerConnection>(), Mock.Of <SqlServerMigrator>(), new LoggerFactory()); Assert.Same(database, database.AsSqlServer()); }
public void Returns_typed_database_object() { var database = new SqlServerDatabase( TestHelpers.Instance.CreateContext(), Mock.Of <IRelationalDataStoreCreator>(), Mock.Of <ISqlServerConnection>(), Mock.Of <IMigrator>(), new LoggerFactory()); Assert.Same(database, database.AsSqlServer()); }
public void Returns_typed_database_object() { var database = new SqlServerDatabase( TestHelpers.Instance.CreateContext(), Mock.Of<ISqlServerDataStoreCreator>(), Mock.Of<ISqlServerConnection>(), Mock.Of<Migrator>(), new LoggerFactory()); Assert.Same(database, database.AsSqlServer()); }