public void then_the_document_should_take_note_of_the_associated_indexing_that_is_pending()
        {
            var evt = (AssociatedIndexingPending)PublishedEventsT.First();

            evt.AggregateId.Should().Be(_DocId);
            evt.ProcessingState.Should().Be(DocumentState.AssociatedIndexingPending);
        }
        public void then_an_event_of_the_association_is_sent()
        {
            var evt = (AssociatedWithCollection)PublishedEventsT.First();

            evt.AggregateId.Should().Be(docId);
            evt.CollectionId.Should().Be(collectionId);
        }
예제 #3
0
        public void should_get_created_document_event()
        {
            var evt = (Created)PublishedEventsT.First();

            evt.Title.Should().Be("My document");
            evt.UtcDate.Should().Be(_created);
            evt.AggregateId.Should().Be(_documentId);
        }
        public void should_get_created_document_event()
        {
            var evt = (DocumentMetaDataCreated)PublishedEventsT.First();

            evt.Title.Should().Be("My document");
            evt.ProcessingState.Should().Be(DocumentState.Created);
            evt.UtcDate.Should().Be(_Created);
        }
예제 #5
0
        public void then_the_document_should_take_note_of_the_associated_indexing_that_is_pending()
        {
            var evt = (DocumentUploaded)PublishedEventsT.First();

            evt.AggregateId.Should().Be(_DocId);
        }
        public void should_use_default_name_if_none_given()
        {
            var @event = (DocumentCollectionCreated)PublishedEventsT.First();

            @event.Name.Should().Be("Default name");
        }
예제 #7
0
        public void should_recieve_new_collection_created_event()
        {
            var evt = (CollectionCreated)PublishedEventsT.First();

            evt.Name.Should().Be(_collectionName);
        }