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)); }