예제 #1
0
        public IHttpActionResult DeleteITEM([PexAssumeUnderTest] ITEMsController target, string id)
        {
            IHttpActionResult result = target.DeleteITEM(id);

            return(result);
            // TODO: add assertions to method ITEMsControllerTest.DeleteITEM(ITEMsController, String)
        }
예제 #2
0
        public IQueryable <ITEM> GetITEMsTest([PexAssumeUnderTest] ITEMsController target)
        {
            IQueryable <ITEM> result = target.GetITEMs();

            return(result);
            // TODO: add assertions to method ITEMsControllerTest.GetITEMsTest(ITEMsController)
        }
예제 #3
0
        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)
        }
예제 #4
0
 public void GetITEM01()
 {
     using (PexDisposableContext disposables = PexDisposableContext.Create())
     {
         ITEMsController   iTEMsController;
         IHttpActionResult iHttpActionResult;
         iTEMsController   = new ITEMsController();
         iHttpActionResult = this.GetITEM(iTEMsController, "100");
         Assert.IsNotNull((object)iHttpActionResult);
     }
 }
예제 #5
0
 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();
     }
 }
예제 #6
0
 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();
     }
 }
예제 #7
0
        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);
        }
예제 #8
0
 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();
     }
 }