예제 #1
0
        public void CreateItemList()
        {
            var response = _service.Create(this.Input);

            Assert.AreEqual(200, response.StatusCode);

            this.IsItemCreated = true;

            this.UrlLinksCount++;
            CheckList();
        }
예제 #2
0
        public IActionResult Post([FromBody] UrlShortenerInput input)
        {
            var response = _service.Create(input);

            return(StatusCode(response.StatusCode, response.Message));
        }