예제 #1
0
            public void ThenMessageRemainsSoapAfterAttachmentsAreRemoved(NonEmptyArray <Guid> ids)
            {
                // Arrange
                AS4Message sut = AS4Message.Empty;
                IEnumerable <Attachment> attachments = ids.Get.Distinct().Select(i => new Attachment(i.ToString()));

                // Act / Assert
                Assert.All(attachments, a =>
                {
                    sut.AddAttachment(a);
                    Assert.NotEqual(Constants.ContentTypes.Soap, sut.ContentType);
                });

                Assert.All(attachments, a => sut.RemoveAttachment(a));
                Assert.Equal(Constants.ContentTypes.Soap, sut.ContentType);
            }