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)); }
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>()); }