private static object PrimaryParameters(IBookMap book) { return(new { book.ISBN, }); }
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); }