Exemplo n.º 1
0
        public async Task Then_all_projections_that_should_not_resume_are_still_stopped()
        {
            await ProjectionManager.Resume(CancellationToken.None);

            await Task.Delay(1000);

            ProjectionManager
            .GetRegisteredProjections()
            .Where(projection => projection.Name != _projectionToResume)
            .Should()
            .OnlyContain(projection => projection.State == ConnectedProjectionState.Stopped);
        }
Exemplo n.º 2
0
        public async Task Then_all_projections_that_should_resume_are_subscribed()
        {
            await ProjectionManager.Resume(CancellationToken.None);

            await Task.Delay(1000);

            ProjectionManager
            .GetRegisteredProjections()
            .Should()
            .Contain(projection =>
                     projection.Name == _projectionToResume &&
                     projection.State == ConnectedProjectionState.Subscribed);
        }