Exemple #1
0
        public void Should_Get_Participant_comform_AVG()
        {
            //ARRANGE
            //ACT
            ParticipantVM result = _c.GetParticipant("Test", "*****@*****.**");

            //ASSERT
            Assert.Null(result.Email);
        }
Exemple #2
0
        public async Task <IActionResult> Join(ParticipantVM model)
        {
            if (ModelState.IsValid)
            {
                Participant participant = model.ToParticipant();
                _context.Add(participant);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Detail), new { id = model.RollId }));
            }
            return(RedirectToAction(nameof(Detail), new { id = model.RollId }));
        }