public void GetAll(IEmployeeClassificationRepository <TModel> repository)
        {
            if (repository == null)
            {
                throw new ArgumentNullException("repository", "repository is null.");
            }

            var all = repository.GetAll();

            Assert.NotNull(all);
            Assert.NotEmpty(all);
        }
        public void CreateAndDelete(IEmployeeClassificationRepository <TModel> repository)
        {
            if (repository == null)
            {
                throw new ArgumentNullException("repository", "repository is null.");
            }

            var newRecord = new TModel();

            newRecord.EmployeeClassificationName = "Test " + DateTime.Now.Ticks;
            var newKey = repository.Create(newRecord);

            Assert.True(newKey >= 1000); //keys under 1000 were not generated by the database

            repository.Delete(newKey);

            var all = repository.GetAll();

            Assert.False(all.Any(ec => ec.EmployeeClassificationKey == newKey));
        }