private void EmbedCfgTest(StateFormat format, bool logo, Resolution res, AspectRatio aspectRatio) { var provider = new EmbededPresetProvider().AsDictionary(); var key = new Tuple <StateFormat, AspectRatio, Resolution, bool>(format, aspectRatio, res, logo); Assert.That(provider.ContainsKey(key), Is.True); Assert.That(provider[key], Is.Not.EqualTo(Guid.Empty)); }
public void TestWfsWorkflowConfiguration(StateFormat format, bool logo, Resolution res, AspectRatio aspectRatio) { var provider = new EmbededPresetProvider().AsDictionary(); var key = new Tuple <StateFormat, AspectRatio, Resolution, bool>(format, aspectRatio, res, logo); var wfs = new WfsService.WfsService("http://wfsctrl01.net.dr.dk:8731/Xpress/SOAP"); string formattedKey = $"{format}_{res.ToString()}_{aspectRatio.ToString().Substring(6)}{(logo ? "_logo" : "")}".ToLower(); string workflowName = wfs.GetWorkflowName(provider[key]).ToLower(); Assert.That(workflowName, Is.EqualTo(formattedKey)); }
public string RandomState(StateFormat stateFormat) { if (stateFormat == StateFormat.Long) { return(RandomStringFromAList("Alabama,Alaska,Arizona,Arkansas,California,Colorado,Connecticut,Delaware,Florida,Georgia,Hawaii,Idaho,Illinois,Indiana,Iowa,Kansas,Kentucky,Louisiana,Maine,Maryland,Massachusetts,Michigan,Minnesota,Mississippi,Missouri,Montana,Nebraska,Nevada,New Hampshire,New Jersey,New Mexico,New York,North Carolina,North Dakota,Ohio,Oklahoma,Oregon,Pennsylvania,Rhode Island,South Carolina,South Dakota,Tennessee,Texas,Utah,Vermont,Virginia,Washington,West Virginia,Wisconsin,Wyoming", ",")); } else if (stateFormat == StateFormat.Short) { return(RandomStringFromAList("AL,AK,AZ,AR,CA,CO,CT,DE,FL,GA,HI,ID,IL,IN,IA,KS,KY,LA,ME,MD,MA,MI,MN,MS,MO,MT,NE,NV,NH,NJ,NM,NY,NC,ND,OH,OK,OR,PA,RI,SC,SD,TN,TX,UT,VT,VA,WA,WV,WI,WY", ",")); } else { return(""); } }
private IList <FFMpegClient.AudioDestinationFormat> GetTargetFormatsFromDestinationFormat(StateFormat format) { if (!_audioDestinations.ContainsKey(format)) { throw new Exception("Usupported target format: " + format); } return(_audioDestinations[format]); }
public void NewEmbedCfgTest(StateFormat format, bool logo, Resolution res, AspectRatio aspectRatio) { EmbedCfgTest(format, logo, res, aspectRatio); }
private Guid ConvertPresetToWorkflow(StateFormat format, AspectRatio ratio, Resolution resolution, bool burnInLogo) { return(_presetToWorkflow[new Tuple <StateFormat, AspectRatio, Resolution, bool>(format, ratio, resolution, burnInLogo)]); }