コード例 #1
0
        private void ThenTheProjectionContainsTheToggleDetails()
        {
            // TODO: move
            ProjectionStore.Received().Create(Core.ReadModel.Projections.ToggleDetails.Projection.StoreKey(ProjectId, ToggleKey), UpdatedProjection);

            UpdatedProjection.Toggle.Key.Should().Be(Event.Key);
            UpdatedProjection.Toggle.Name.Should().Be(Event.Name);
        }
コード例 #2
0
        private void ThenTheProjectionContainsTheProjectDetails()
        {
            ProjectionStore.Received().Create(Projection.StoreKey(ProjectId), UpdatedProjection);

            var project = UpdatedProjection.Project;

            project.Name.Should().Be(Event.Name);
            project.Environments.Should().BeEmpty();
            project.Toggles.Should().BeEmpty();
        }
コード例 #3
0
 private void ThenTheProjectionIsDeleted()
 {
     ProjectionStore.Received().Delete(Projection.StoreKey(ProjectId, ToggleKey));
 }
コード例 #4
0
 private void ThenTheProjectionIsDeleted()
 {
     ProjectionStore.Received().Delete(Projection.StoreKey(ProjectId, EnvironmentKey));
 }
コード例 #5
0
 protected void ThenTheProjectionIsCreated()
 {
     ProjectionStore.Received().Create(Core.ReadModel.Projections.AccountProjects.Projection.StoreKey(AccountId), UpdatedProjection);
 }
コード例 #6
0
        private void ThenTheProjectionContainsTheEnvironmentState()
        {
            ProjectionStore.Received().Create(Projection.StoreKey(ProjectId, EnvironmentKey), UpdatedProjection);

            UpdatedProjection.EnvironmentState.ToggleStates.Should().BeEquivalentTo(Event.ToggleStates);
        }