public async void Create()
        {
            Mock <ILogger <EmployeeRepository> > loggerMoc = EmployeeRepositoryMoc.GetLoggerMoc();
            ApplicationDbContext context = EmployeeRepositoryMoc.GetContext();
            var repository = new EmployeeRepository(loggerMoc.Object, context);

            var entity = new Employee();
            await repository.Create(entity);

            var record = await context.Set <Employee>().FirstOrDefaultAsync();

            record.Should().NotBeNull();
        }
        public async void Get()
        {
            Mock <ILogger <EmployeeRepository> > loggerMoc = EmployeeRepositoryMoc.GetLoggerMoc();
            ApplicationDbContext context = EmployeeRepositoryMoc.GetContext();
            var repository = new EmployeeRepository(loggerMoc.Object, context);

            Employee entity = new Employee();

            context.Set <Employee>().Add(entity);
            await context.SaveChangesAsync();

            var record = await repository.Get(entity.BusinessEntityID);

            record.Should().NotBeNull();
        }
        public async void Delete()
        {
            Mock <ILogger <EmployeeRepository> > loggerMoc = EmployeeRepositoryMoc.GetLoggerMoc();
            ApplicationDbContext context = EmployeeRepositoryMoc.GetContext();
            var      repository          = new EmployeeRepository(loggerMoc.Object, context);
            Employee entity = new Employee();

            context.Set <Employee>().Add(entity);
            await context.SaveChangesAsync();

            await repository.Delete(entity.BusinessEntityID);

            Employee modifiedRecord = await context.Set <Employee>().FirstOrDefaultAsync();

            modifiedRecord.Should().BeNull();
        }
        public async void Update_Entity_Is_Not_Tracked()
        {
            Mock <ILogger <EmployeeRepository> > loggerMoc = EmployeeRepositoryMoc.GetLoggerMoc();
            ApplicationDbContext context = EmployeeRepositoryMoc.GetContext();
            var      repository          = new EmployeeRepository(loggerMoc.Object, context);
            Employee entity = new Employee();

            context.Set <Employee>().Add(entity);
            await context.SaveChangesAsync();

            await repository.Update(new Employee());

            var modifiedRecord = context.Set <Employee>().FirstOrDefaultAsync();

            modifiedRecord.Should().NotBeNull();
        }