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); }
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(); }
private void ThenTheProjectionIsDeleted() { ProjectionStore.Received().Delete(Projection.StoreKey(ProjectId, ToggleKey)); }
private void ThenTheProjectionIsDeleted() { ProjectionStore.Received().Delete(Projection.StoreKey(ProjectId, EnvironmentKey)); }
protected void ThenTheProjectionIsCreated() { ProjectionStore.Received().Create(Core.ReadModel.Projections.AccountProjects.Projection.StoreKey(AccountId), UpdatedProjection); }
private void ThenTheProjectionContainsTheEnvironmentState() { ProjectionStore.Received().Create(Projection.StoreKey(ProjectId, EnvironmentKey), UpdatedProjection); UpdatedProjection.EnvironmentState.ToggleStates.Should().BeEquivalentTo(Event.ToggleStates); }