public void BookStoreBussinessLayer_ShouldReturnAllBook() { var service = new Mock <IBookRL>(); var manager = new ImpBookManagerBL(service.Object); var data = manager.GetAllBookBL(); Assert.NotNull(data); }
public void GivenBookDetail_ToBookStoreBusinesLayer_ShouldReturnBookDetails() { var service = new Mock <IBookRL>(); var manager = new ImpBookManagerBL(service.Object); book.BookTitle = "Never Happen Twice"; book.AuthorName = "BDEC"; book.BookImage = "images.jpg"; book.BookPrice = 85.00; book.Availability = 10; var data = manager.AddBookBL(book); Assert.NotNull(data); }