public async Task <bool> Testfor_GetBookList() { //Arrange var res = false; //Action service.Setup(repos => repos.BookList()); var result = await _SchoolServices.BookList(); //Assertion if (result != null) { res = true; } //Assert //final result displaying in text file await File.AppendAllTextAsync("../../../../output_revised.txt", "Testfor_GetBookList=" + res + "\n"); return(res); }