예제 #1
0
        public void Constructor_WhenInvoked_MustAddSuppliersCollectionId()
        {
            // Arrange, Act
            var subject = new SuppliersCollection(suppliersCollectionId, groupId);

            // Assert
            var @event = subject.GetUncommitedChanges().Single() as SuppliersCollectionCreated;

            Assert.That(@event.SuppliersCollectionId, Is.EqualTo(suppliersCollectionId));
        }
예제 #2
0
        public void Constructor_WhenInvoked_MustAddSuppliersCollectionCreatedEvent()
        {
            // Arrange, Act
            var subject = new SuppliersCollection(suppliersCollectionId, groupId);

            // Assert
            var @event = subject.GetUncommitedChanges().Single();

            Assert.That(@event, Is.TypeOf <SuppliersCollectionCreated>());
        }