public IHttpActionResult DeleteITEM([PexAssumeUnderTest] ITEMsController target, string id) { IHttpActionResult result = target.DeleteITEM(id); return(result); // TODO: add assertions to method ITEMsControllerTest.DeleteITEM(ITEMsController, String) }
public IQueryable <ITEM> GetITEMsTest([PexAssumeUnderTest] ITEMsController target) { IQueryable <ITEM> result = target.GetITEMs(); return(result); // TODO: add assertions to method ITEMsControllerTest.GetITEMsTest(ITEMsController) }
public IHttpActionResult PutITEM( [PexAssumeUnderTest] ITEMsController target, string id, ITEM iTEM ) { IHttpActionResult result = target.PutITEM(id, iTEM); return(result); // TODO: add assertions to method ITEMsControllerTest.PutITEM(ITEMsController, String, ITEM) }
public void GetITEM01() { using (PexDisposableContext disposables = PexDisposableContext.Create()) { ITEMsController iTEMsController; IHttpActionResult iHttpActionResult; iTEMsController = new ITEMsController(); iHttpActionResult = this.GetITEM(iTEMsController, "100"); Assert.IsNotNull((object)iHttpActionResult); } }
public void GetITEMsTest01() { using (PexDisposableContext disposables = PexDisposableContext.Create()) { ITEMsController iTEMsController; IQueryable <ITEM> iQueryable; iTEMsController = new ITEMsController(); disposables.Add((IDisposable)iTEMsController); iQueryable = this.GetITEMsTest(iTEMsController); //Assert.IsNotNull((object)iQueryable); disposables.Dispose(); } }
public void DeleteITEM01() { using (PexDisposableContext disposables = PexDisposableContext.Create()) { ITEMsController iTEMsController; IHttpActionResult iHttpActionResult; iTEMsController = new ITEMsController(); disposables.Add((IDisposable)iTEMsController); iHttpActionResult = this.DeleteITEM(iTEMsController, "189"); Assert.IsNotNull((object)iHttpActionResult); disposables.Dispose(); } }
public void PostRequest() { var controller = new ITEMsController(); controller.Request = new HttpRequestMessage(); controller.Configuration = new HttpConfiguration(); var response = controller.PostITEM(new ITEM { ITCODE = "191", ITDESC = "Collgate", ITRATE = 80 }); Assert.IsNotNull(response); }
public void PutITEM01() { using (PexDisposableContext disposables = PexDisposableContext.Create()) { ITEMsController iTEMsController; IHttpActionResult iHttpActionResult; iTEMsController = new ITEMsController(); disposables.Add((IDisposable)iTEMsController); iHttpActionResult = this.PutITEM(iTEMsController, "200", new ITEM { ITCODE = "200", ITDESC = "ToothBrush", ITRATE = 80 }); Assert.IsNotNull((object)iHttpActionResult); disposables.Dispose(); } }