public async Task UpdateMailSettingAsync()
        {
            _groupDataRepository.Insert(teamLeaderGroup);
            _groupDataRepository.Insert(managementGroup);
            await _groupDataRepository.SaveChangesAsync();

            await _mailSettingRepository.AddMailSettingAsync(mailSetting);

            var previousMailSetting = await _mailSettingDataRepository.FirstOrDefaultAsync(x => x.ProjectId == 1);

            var mailSettingToUpdate = _mapper.Map <MailSetting, MailSettingAC>(previousMailSetting);

            mailSettingToUpdate.SendMail = false;
            mailSettingToUpdate.CC       = new List <string>()
            {
                _stringConstant.EmailForTest, _stringConstant.Management
            };
            mailSettingToUpdate.To = new List <string>()
            {
                _stringConstant.TeamLeader, _stringConstant.TeamLeaderEmailForTest
            };
            await _mailSettingRepository.UpdateMailSettingAsync(mailSettingToUpdate);

            var result = await _mailSettingDataRepository.FirstOrDefaultAsync(x => x.ProjectId == 1);

            Assert.Equal(result.Id, previousMailSetting.Id);
            Assert.False(result.SendMail);
        }
        public async Task <IHttpActionResult> UpdateMailSettingAsync(MailSettingAC mailSettingAC)
        {
            await _mailSettingRepository.UpdateMailSettingAsync(mailSettingAC);

            return(Ok());
        }