Exemplo n.º 1
0
        public async Task <IActionResult> RegisterCards([FromBody] RegisterCardOptions options)
        {
            var cards = await _cards.RegisterCardsAsync(options);

            if (cards.Code != ResultCodes.Success)
            {
                return(StatusCode(cards.Code, cards.Message));
            }

            return(Json(cards));
        }
Exemplo n.º 2
0
        public async void Test_RegisterCardsAsync()
        {
            var options = new RegisterCardOptions()
            {
                Description = "my family card"
            };

            var cards = await _cards.RegisterCardsAsync(options);

            Assert.NotNull(cards);
        }