public IActionResult DeleteReceiver(string id)
        {
            var receiver = _pushNotificationsService.GetPushReceiver(id);

            _pushNotificationsService.DeletePushReceiver(receiver);

            return(new NullJsonResult());
        }
        public async Task <IActionResult> DeleteReceiver(string id)
        {
            var receiver = await _pushNotificationsService.GetPushReceiver(id);

            await _pushNotificationsService.DeletePushReceiver(receiver);

            return(new JsonResult(""));
        }
        public async Task CanGetRegistration()
        {
            ClearPushRegistrations();

            var registration = new PushRegistration {
                Token = "CanGetRegistration"
            };
            await _pushNotificationsService.InsertPushReceiver(registration);

            var actual = _registrationRepository.Table.Where(x => x.Token == "CanGetRegistration").First();
            var found  = await _pushNotificationsService.GetPushReceiver(actual.Id);

            Assert.AreEqual(actual.Token, found.Token);
            Assert.AreEqual(actual.Id, found.Id);
        }