public static SqlFuConnection GetDb() { return(Setup.GetDb()); }
private void CreateEvents() { _events = Setup.Events(); }
public ScriptRunnerTests() { _config = Setup.Configuration(); _config.TasksAre(t => t.DeclaringType == typeof(IntegrationTasks)); _sut = new ScriptRunner(GetType().Assembly, _config); }
public FakeDbProvider() : base(Empty.Func <DbConnection>(), "") { _e = new FakeEscapeIdentifier(); Converters = Setup.Converters(); }
public void Clean_has_no_dependencies() { var sut = new TaskConfiguration(typeof(MyWrapperClass.Clean)); sut.GetDependencies(Setup.FakeScriptParamsObject()).Should().BeEmpty(); }
public static ExpressionSqlGenerator CreateExpressionSqlGenerator(IDbProviderExpressions exprProvider) { return(new ExpressionSqlGenerator(exprProvider, Setup.InfoFactory(), new FakeEscapeIdentifier())); }
void StoreSetupWithCommits() { _store.GetNextBatch(Arg.Any <ReadModelGenerationConfig>(), Arg.Any <ProcessedCommitsCount>()) .Returns(new CommittedEvents(Setup.Commits(4).ToArray())); }
public static CommittedEvents CommittedEvents <T, V>(int count) where T : class, new() where V : class, new() => new CommittedEvents(Setup.Commits <T, V>(count).ToArray());
public GetEventsAndSnapshotTests(ITestOutputHelper h) { _storage = Substitute.For <ISpecificDbStorage>(); _sut = new StoreFacade(_storage, Setup.EventStoreSettings(h)); }