コード例 #1
0
        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);
        }
コード例 #4
0
        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);
        }