public async void Can_resend_activation_email() { _emailNotificationWorker.Start(); FakeBrandRepository.Brands.First().PlayerActivationMethod = PlayerActivationMethod.Email; FakeBrandRepository.SaveChanges(); await RegisterPlayer(false); var playerId = FakePlayerRepository.Players.First().Id; _playerCommands.ResendActivationEmail(playerId); var events = FakeEventRepository.GetEvents <NotificationSentEvent>().ToArray(); Assert.That(events.Length, Is.EqualTo(2)); }
public IHttpActionResult ResendActivationEmail(ResendActivationEmailData data) { _commands.ResendActivationEmail(data.Id); return(Ok(new { Result = "success" })); }