mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 08:11:10 +00:00
Adds authorization module tests
This commit is contained in:
1 parent
718e1c49cf
commit
0114ff13e8
125 files changed
+10411
-203
No files matched your search
@@ -64,4 +64,4 @@ public enum BookFormat
|
||||
/// A book with three-dimensional paper engineering, creating pop-up or movable parts.
|
||||
/// </summary>
|
||||
PopupBook
|
||||
}
|
||||
}
|
||||
@@ -24,4 +24,4 @@ public enum BookRatingSource
|
||||
/// Ratings from Google Books, a service that searches the full text of books and magazines that Google has scanned and converted to text.
|
||||
/// </summary>
|
||||
GoogleBooks,
|
||||
}
|
||||
}
|
||||
@@ -16,4 +16,4 @@ public enum IsbnFormat
|
||||
/// Example: 978-0-306-40615-7
|
||||
/// </summary>
|
||||
Isbn13
|
||||
}
|
||||
}
|
||||
@@ -18,12 +18,12 @@ public abstract class Entity<TId> : IEquatable<Entity<TId>> where TId : notnull
|
||||
/// <summary>
|
||||
/// Gets the date and time when the entity was created.
|
||||
/// </summary>
|
||||
public DateTime Created { get; set; }
|
||||
public DateTime CreatedOnUtc { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the date and time when the entity was last updated.
|
||||
/// </summary>
|
||||
public DateTime? Updated { get; set; }
|
||||
public DateTime? UpdatedOnUtc { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Entity{TId}"/> class.
|
||||
|
||||
+12
-12
@@ -126,8 +126,8 @@ public sealed class Book : AggregateRoot<BookId>
|
||||
/// <param name="googleBooksId">The optional Google Books ID of the book.</param>
|
||||
/// <param name="barnesAndNobleId">The optional Barnes & Noble ID of the book.</param>
|
||||
/// <param name="appleBooksId">The optional Apple Books ID of the book.</param>
|
||||
/// <param name="created">The date and time when the entity was created.</param>
|
||||
/// <param name="updated">The date and time when the entity was last updated.</param>
|
||||
/// <param name="createdOnUtc">The date and time when the entity was created.</param>
|
||||
/// <param name="updatedOnUtc">The date and time when the entity was last updated.</param>
|
||||
/// <param name="isbns">The list of ISBNs of the book.</param>
|
||||
/// <param name="contributors">The list of media contributors of the book.</param>
|
||||
/// <param name="ratings">The list of ratings for the book.</param>
|
||||
@@ -147,8 +147,8 @@ public sealed class Book : AggregateRoot<BookId>
|
||||
Optional<string> googleBooksId,
|
||||
Optional<string> barnesAndNobleId,
|
||||
Optional<string> appleBooksId,
|
||||
DateTime created,
|
||||
Optional<DateTime> updated,
|
||||
DateTime createdOnUtc,
|
||||
Optional<DateTime> updatedOnUtc,
|
||||
List<Isbn> isbns,
|
||||
List<MediaContributorId> contributors,
|
||||
List<BookRating> ratings) : base(id)
|
||||
@@ -168,8 +168,8 @@ public sealed class Book : AggregateRoot<BookId>
|
||||
GoogleBooksId = googleBooksId;
|
||||
BarnesAndNobleId = barnesAndNobleId;
|
||||
AppleBooksId = appleBooksId;
|
||||
Created = created;
|
||||
Updated = updated.HasValue ? updated.Value : null;
|
||||
CreatedOnUtc = createdOnUtc;
|
||||
UpdatedOnUtc = updatedOnUtc.HasValue ? updatedOnUtc.Value : null;
|
||||
_isbns = isbns;
|
||||
_contributors = contributors;
|
||||
_ratings = ratings;
|
||||
@@ -270,8 +270,8 @@ public sealed class Book : AggregateRoot<BookId>
|
||||
/// <param name="googleBooksId">The optional Google Books ID of the book.</param>
|
||||
/// <param name="barnesAndNobleId">The optional Barnes & Noble ID of the book.</param>
|
||||
/// <param name="appleBooksId">The optional Apple Books ID of the book.</param>
|
||||
/// <param name="created">The date and time when the entity was created.</param>
|
||||
/// <param name="updated">The date and time when the entity was last updated.</param>
|
||||
/// <param name="createdOnUtc">The date and time when the entity was created.</param>
|
||||
/// <param name="updatedOnUtc">The date and time when the entity was last updated.</param>
|
||||
/// <param name="isbns">The list of ISBNs of the book.</param>
|
||||
/// <param name="contributors">The list of media contributors of the book.</param>
|
||||
/// <param name="ratings">The list of ratings for the book.</param>
|
||||
@@ -294,8 +294,8 @@ public sealed class Book : AggregateRoot<BookId>
|
||||
Optional<string> googleBooksId,
|
||||
Optional<string> barnesAndNobleId,
|
||||
Optional<string> appleBooksId,
|
||||
DateTime created,
|
||||
Optional<DateTime> updated,
|
||||
DateTime createdOnUtc,
|
||||
Optional<DateTime> updatedOnUtc,
|
||||
List<Isbn> isbns,
|
||||
List<MediaContributorId> contributors,
|
||||
List<BookRating> ratings)
|
||||
@@ -317,8 +317,8 @@ public sealed class Book : AggregateRoot<BookId>
|
||||
googleBooksId,
|
||||
barnesAndNobleId,
|
||||
appleBooksId,
|
||||
created,
|
||||
updated,
|
||||
createdOnUtc,
|
||||
updatedOnUtc,
|
||||
isbns,
|
||||
contributors,
|
||||
ratings
|
||||
|
||||
Reference in new issue
Block a user