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

            Assert.AreEqual(200, response.StatusCode);

            this.IsItemCreated = true;

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

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