Example #1
0
        private void buttonDelete_Click(object sender, EventArgs e)
        {
            if (empDataGridView.SelectedRows.Count == 0)
            {
                return;
            }

            empRepo.Delete(selectedRowDBindex());
            empRepo.Save();
            RefreshGui();
        }
Example #2
0
        public async Task DeleteEmployerAsync_EmployerIsPreviouslySeeded_DeletesEmployer()
        {
            Employer deletedEmployer;

            using (var uow = unitOfWorkProvider.Create())
            {
                employerRepository.Delete(Initializer.MicrosoftEmployer.Id);
                await uow.Commit();

                deletedEmployer = await employerRepository.GetAsync(Initializer.MicrosoftEmployer.Id);
            }

            Assert.Null(deletedEmployer);
        }
Example #3
0
 public void DeleteById(string id)
 {
     _employerRepository.Delete(id);
 }