public async Task WriteData_ShouldCreateNewRecord() { var writeData = new WriteData(_context); var expected = new Book { BookId = 101, Name = "Book55", Description = "Desc55" }; await writeData.AddBookAsync(expected); var actual = await _context.Books.FindAsync(101); Assert.Same(expected, actual); }