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