internal static void ShouldHaveDeletedContent(IDbConnection dbConnection, BookFileDto content, string mimeType) { var dbContent = dbConnection.GetBookContent(content.Id, content.Language, mimeType); dbContent.Should().BeNull("Book contnet should be deleted"); var dbFile = dbConnection.GetFileById(content.FileId); dbFile.Should().BeNull("Files for content should be deleted"); }
internal static void ShouldHaveLocationHeader(RedirectResult result, int libraryId, int bookId, BookFileDto content) { var response = result as RedirectResult; response.Url.Should().NotBeNull(); response.Url.Should().EndWith($"libraries/{libraryId}/books/{bookId}/files"); }