Below is my code for which I need to write the unit test with MOQ
public IHttpActionResult Get(string id)
{
try
{
var RequestedCollection = Manager.Requested(id);
return Ok(RequestedCollection);
}
catch (Exception ex)
{
return BadRequest(ex.Message);
}
}
Aucun commentaire:
Enregistrer un commentaire