示例#1
0
        public void GetAgencySettings()
        {
            List <SettingValue> items = new List <SettingValue>();

            items.Add(new SettingValue("key", "value"));
            AgencySettings settings = new AgencySettings("name", items);

            _agency.SetAgencySettings(settings);

            var result = _agencyQueryService.GetAgencySettings(_agency.Id);

            result.Should().NotBeNullOrEmpty();
            result.Should().HaveCount(1);
            result.Select(item => item.Key).FirstOrDefault().Should().Be("key");
            result.Select(item => item.Value).FirstOrDefault().Should().Be("value");
        }
 /// <summary>
 /// Get the display string for an enum by it's value in enum form
 /// </summary>
 /// <param name="value">The enum value in enum form</param>
 /// <returns>The display string for the value or the default if one cannot be found</returns>
 public static string GetByEnum(AgencySettings value)
 {
     return(GetByEnum((int)value));
 }
示例#3
0
 public void SetAgencySettings(AgencySettings settings)
 {
     this.Settings = settings;
 }
示例#4
0
 public new bool CheckEquals(AgencySettings other)
 {
     return(base.CheckEquals(other));
 }