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