public void FetchDataTest() { lLoveBADoc f = new lLoveBADoc(); var ff = f.FetchData("BAPS"); var res = ff.Result; Assert.AreEqual(ff.Result.Count(), 590); }
public async System.Threading.Tasks.Task <dynamic> JsonDetails(string Search) { lLoveBADoc f = new lLoveBADoc(); var ff = await f.FetchData(Search); // var res = ff.Result; var json = ff.Select(delegate(BsonDocument p) { p.RemoveAt(0); var lp = p["netpath"].AsString; p["localpath"] = lp.Replace(BApath, Localpath); return(p); } ).ToJson(); return(json); }