public async Task <IActionResult> Draw(bool childPlay)
        {
            try
            {
                await _friendService.Draw(childPlay);

                return(StatusCode(200, "Email enviado com os amigos sorteados com sucesso!"));
            }
            catch (Exception ex)
            {
                return(StatusCode(400, ex.Message));
            }
        }
Beispiel #2
0
        public void Should_Draw_When_Informed_if_isChildren()
        {
            var isChildren = false;

            Assert.ThrowsAsync <NullReferenceException>(() => _friendServiceTest.Draw(isChildren));
        }