public async Task DeleteFailsWhenIdNotInDatabase()
        {
            AutoMapperInitializer.InitializeMapper();
            var context    = InMemoryDbContextInitializer.InitializeContext();
            var repository = new EfDeletableEntityRepository <JobApplicationStatus>(context);

            var service = new JobApplicationStatusesService(repository);
            var result  = await service.DeleteAsync(100);

            Assert.False(result);
        }
        public async Task DeleteMarksRecordAsDeleted()
        {
            AutoMapperInitializer.InitializeMapper();
            var context = InMemoryDbContextInitializer.InitializeContext();
            await context.ApplicationStatuses.AddAsync(new JobApplicationStatus { Id = 1, Name = "Status", IsDeleted = false });

            await context.SaveChangesAsync();

            var repository = new EfDeletableEntityRepository <JobApplicationStatus>(context);

            var service = new JobApplicationStatusesService(repository);

            var result = await service.DeleteAsync(1);

            var dbRecord = await context.ApplicationStatuses.FindAsync(1);

            Assert.True(result);
            Assert.True(dbRecord.IsDeleted);
            Assert.NotNull(dbRecord.DeletedOn);
            Assert.Equal(1, context.ApplicationStatuses.IgnoreQueryFilters().Count());
        }