コード例 #1
0
 public static SqlFuConnection GetDb()
 {
     return(Setup.GetDb());
 }
コード例 #2
0
 private void CreateEvents()
 {
     _events = Setup.Events();
 }
コード例 #3
0
 public ScriptRunnerTests()
 {
     _config = Setup.Configuration();
     _config.TasksAre(t => t.DeclaringType == typeof(IntegrationTasks));
     _sut = new ScriptRunner(GetType().Assembly, _config);
 }
コード例 #4
0
 public FakeDbProvider() : base(Empty.Func <DbConnection>(), "")
 {
     _e         = new FakeEscapeIdentifier();
     Converters = Setup.Converters();
 }
コード例 #5
0
        public void Clean_has_no_dependencies()
        {
            var sut = new TaskConfiguration(typeof(MyWrapperClass.Clean));

            sut.GetDependencies(Setup.FakeScriptParamsObject()).Should().BeEmpty();
        }
コード例 #6
0
 public static ExpressionSqlGenerator CreateExpressionSqlGenerator(IDbProviderExpressions exprProvider)
 {
     return(new ExpressionSqlGenerator(exprProvider, Setup.InfoFactory(), new FakeEscapeIdentifier()));
 }
コード例 #7
0
 void StoreSetupWithCommits()
 {
     _store.GetNextBatch(Arg.Any <ReadModelGenerationConfig>(), Arg.Any <ProcessedCommitsCount>())
     .Returns(new CommittedEvents(Setup.Commits(4).ToArray()));
 }
コード例 #8
0
 public static CommittedEvents CommittedEvents <T, V>(int count) where T : class, new() where V : class, new()
 => new CommittedEvents(Setup.Commits <T, V>(count).ToArray());
コード例 #9
0
        public GetEventsAndSnapshotTests(ITestOutputHelper h)
        {
            _storage = Substitute.For <ISpecificDbStorage>();

            _sut = new StoreFacade(_storage, Setup.EventStoreSettings(h));
        }