Esempio n. 1
0
        public void PutTest()
        {
            ICrud <FileListModel> fileListService = null;                                    // TODO: Initialize to an appropriate value
            FileListController    target          = new FileListController(fileListService); // TODO: Initialize to an appropriate value
            int           id   = 0;                                                          // TODO: Initialize to an appropriate value
            FileListModel user = new FileListModel
            {
                UserName               = "******",
                ActivationDate         = null,
                Admin                  = false,
                CanexportList          = false,
                CompanyName            = "Risk Metrics",
                ExpirationDate         = null,
                FilePath               = @"db\SC-JordanMcCallum.mdb",
                LastLoginDate          = null,
                MaxReportViewsPerMonth = 0,
                Name        = null,
                Password    = "******",
                RenewalDate = null,
                States      = "SC"
            };


            HttpResponseMessage expected = null; // TODO: Initialize to an appropriate value
            HttpResponseMessage actual;

            //actual = target.Put(id, model);
            //Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
Esempio n. 2
0
        public void DeleteTest()
        {
            ICrud <FileListModel> fileListService = null;                                    // TODO: Initialize to an appropriate value
            FileListController    target          = new FileListController(fileListService); // TODO: Initialize to an appropriate value
            int id = 0;                                                                      // TODO: Initialize to an appropriate value
            HttpResponseMessage expected = null;                                             // TODO: Initialize to an appropriate value
            HttpResponseMessage actual;

            actual = target.Delete(id);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }