public PhotoAndThumbnailIdentifiers( [CanBeNull] PhotoIdentifier originalPhotoIdentifier, [CanBeNull] PhotoIdentifier thumbnailPhotoIdentifier) { OriginalPhotoIdentifier = originalPhotoIdentifier; ThumbnailPhotoIdentifier = thumbnailPhotoIdentifier; }
public Photo( [NotNull] PhotoIdentifier identifier, [NotNull] string contentType, [NotNull] Stream content) { Identifier = identifier ?? throw new ArgumentNullException(nameof(identifier)); ContentType = contentType ?? throw new ArgumentNullException(nameof(contentType)); Content = content ?? throw new ArgumentNullException(nameof(content)); }