I have a method of wcf calling in xamarin and want to create the test code of this method using shim fake
public Dictionary<int, string> GetProductCategory()
{
BasicHttpBinding binding = AceWCFBinding.CreateBasicHttp();
using ( AceWCFClientWrapper<AceVqbzServiceClient> objAceWCFClientWrapper = new AceWCFClientWrapper<AceVqbzServiceClient>( binding, AceWCFBinding.EndPoint ) )
{
IAceVqbzService aceVqbzTypeService = objAceWCFClientWrapper._proxy as IAceVqbzService;
var _task = Task<Dictionary<int, string>>.Factory.FromAsync( aceVqbzTypeService.BeginGetProductCategory, aceVqbzTypeService.EndGetProductCategory, TaskCreationOptions.None );
Dictionary<int, string> _res = _task.Result;
return _res;
}
}
Please provide me the way how i will manage the test code of this method
Aucun commentaire:
Enregistrer un commentaire