/// <summary>
        /// Method to delete stream
        /// </summary>
        /// <param name="page"></param>
        /// <param name="sort"></param>
        /// <param name="sortDir"></param>
        /// <returns></returns>
        //To delete Release
        public ActionResult DeleteR(int releaseId)
        {
            bool check = robjModel.DeleteReleases(releaseId);
            var  data  = robjModel.GetReleases();

            return(RedirectToAction("SearchRelease"));
        }
예제 #2
0
        public void ShouldReturnListOfReleases()
        {
            var list = _releaseServices.GetReleases(_context);

            list.Should().HaveCount(2);
            list[0].VersionName.Should().Be("v1.0.0");
            list[1].VersionName.Should().Be("v2.0.0");
        }