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)); }
public void SetAgencySettings(AgencySettings settings) { this.Settings = settings; }
public new bool CheckEquals(AgencySettings other) { return(base.CheckEquals(other)); }