public When_QualificationRepository_GetSingleOrDefault_Is_Called()
        {
            var logger = Substitute.For <ILogger <GenericRepository <Domain.Models.Qualification> > >();

            using var dbContext = InMemoryDbContext.Create();
            dbContext.AddRange(new ValidQualificationListBuilder().Build());
            dbContext.SaveChanges();

            var repository = new GenericRepository <Domain.Models.Qualification>(logger, dbContext);

            _result = repository.GetSingleOrDefaultAsync(x => x.Id == 1)
                      .GetAwaiter().GetResult();
        }
        public When_QualificationRepository_Update_Is_Called()
        {
            var logger = Substitute.For <ILogger <GenericRepository <Domain.Models.Qualification> > >();

            using var dbContext = InMemoryDbContext.Create();
            var entity = new ValidQualificationBuilder().Build();

            dbContext.Add(entity);
            dbContext.SaveChanges();

            var repository = new GenericRepository <Domain.Models.Qualification>(logger, dbContext);

            entity.Title      = "Updated Title";
            entity.ShortTitle = "Updated Short Title";

            entity.ModifiedOn = new DateTime(2019, 11, 01, 12, 30, 00);
            entity.ModifiedBy = "UpdateTestUser";

            repository.UpdateAsync(entity).GetAwaiter().GetResult();

            _result = repository.GetSingleOrDefaultAsync(x => x.Id == 1)
                      .GetAwaiter().GetResult();
        }