Ejemplo n.º 1
0
 private static object PrimaryParameters(IBookMap book)
 {
     return(new
     {
         book.ISBN,
     });
 }
Ejemplo n.º 2
0
 private static object AllParameters(IBookMap book)
 {
     return(new
     {
         book.ISBN,
         book.Author,
         book.Binding,
         CanLoan = book.Loanable,
         book.Description,
         book.Edition,
         book.Language,
         book.Subject,
         book.Title
     });
 }
 public static Mock <IBookAccess> WithSelectWithIdResult(this Mock <IBookAccess> mock, IBookMap bookMap)
 {
     mock.Setup(m => m.SelectWithIdAsync(It.IsAny <string>())).ReturnsAsync(bookMap);
     return(mock);
 }