public void SaveMasterConfiguration()
        {
            //Unified Data Store
            tblMasterConfigurationDto objDto = new tblMasterConfigurationDto();

            objDto.MinPasswordLength = 8;
            objDto.RequireNumberInPassword = true;
            objDto.RequireSpecialCharacterInPassword = true;
            objDto.MaxPasswordLife = 100;
            objDto.MaxLogonRetry = 2;
            objDto.PasswordHistoryCount = 2;
            objDto.AllowReusePasswordFromHistory = false;
            objDto.CreatedBy = "Paresh Rao";
            objDto.CreatedOn = DateTime.Now;
            //Optional Fields
            objDto.ModifiedBy = "Ravi Keshwani";
            objDto.ModifiedOn = DateTime.Now;
            objDto.IPAddressOfLastAction = "10.7.200.300";
            objDto.DefaultEmailAddress = "*****@*****.**";
            objDto.OutgoingEmailServer = "10.10.10.10";
            objDto.SenderMailAddress = "*****@*****.**";
            objDto.EmailAccountUserName = "******";
            objDto.EmailAccountUserPassword = "******";

            MasterConfigurationProvider objMasterConfigurationProvider = new MasterConfigurationProvider();
            int returnVal = objMasterConfigurationProvider.SaveMasterConfiguration(objDto);

            Assert.AreEqual(1, returnVal, "It should return 1");
        }
        /// <summary>
        /// Saves master configurations
        /// </summary>
        /// <param name="masterConfigurationBO"></param>
        /// <returns></returns>
        public int SaveMasterConfiguration(MasterConfigurationBO masterConfigurationBO)
        {
            Mapper.CreateMap<MasterConfigurationBO, tblMasterConfigurationDto>();
            tblMasterConfigurationDto tblMasterConfigurationDto = new Domain.tblMasterConfigurationDto();

            Mapper.Map(masterConfigurationBO, tblMasterConfigurationDto);
            MasterConfigurationProvider objMasterConfigurationProvider = new MasterConfigurationProvider();
            return objMasterConfigurationProvider.SaveMasterConfiguration(tblMasterConfigurationDto);
        }
        public void GetMasterConfiguration()
        {
            MasterConfigurationProvider objMasterConfigurationProvider = new MasterConfigurationProvider();
            tblMasterConfigurationDto mastConfigDto = objMasterConfigurationProvider.GetMasterConfiguration();

            if (mastConfigDto !=null)
            {
                string returnString = mastConfigDto.EmailAccountUserName;
            }

            Assert.AreNotEqual(null, mastConfigDto, "It should not return null");
        }
 /// <summary>
 /// Gets master configurations
 /// </summary>
 /// <returns></returns>
 public MasterConfigurationBO GetMasterConfiguration()
 {
     Mapper.CreateMap<tblMasterConfigurationDto, MasterConfigurationBO>();
     MasterConfigurationProvider objMasterConfigurationProvider = new MasterConfigurationProvider();
     return Mapper.Map(objMasterConfigurationProvider.GetMasterConfiguration(), new MasterConfigurationBO());
 }