mercredi 4 mai 2016

how to write testmethod for this method using MOQ

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