public void Invoke_CreateProduction_Returns_Result() { HasAccessToken(); var production = new Production(); if (!String.IsNullOrWhiteSpace(_preset?.Uuid)) { production = new Production(_preset.Uuid); } Assert.That(() => _production = _auphonic.CreateProduction(production), Throws.Nothing); Assert.That(_production, Is.Not.Null); Assert.Multiple(() => { Assert.That(_production.Algorithms, Is.Not.Null, "Algorithms"); Assert.That(_production.Bitrate, Is.Null, "Bitrate"); Assert.That(_production.ChangeAllowed, Is.True, "ChangeAllowed"); Assert.That(_production.ChangeTime, Is.GreaterThan(DateTime.MinValue), "ChangeTime"); Assert.That(_production.Channels, Is.Null, "Channels"); Assert.That(_production.Chapters, Is.Not.Null, "Chapters"); Assert.That(_production.CreationTime, Is.GreaterThan(DateTime.MinValue), "CreationTime"); Assert.That(_production.CutEnd, Is.EqualTo(0), "CutEnd"); Assert.That(_production.CutStart, Is.EqualTo(0), "CutStart"); Assert.That(_production.EditPage, Is.EqualTo($"https://auphonic.com/engine/upload/edit/{_production.Uuid}"), "EditPage"); Assert.That(_production.ErrorMessage, Is.EqualTo(String.Empty), "ErrorMessage"); Assert.That(_production.ErrorStatus, Is.Null, "ErrorStatus"); Assert.That(_production.Format, Is.EqualTo(String.Empty), "Format"); Assert.That(_production.HasVideo, Is.False, "HasVideo"); Assert.That(_production.Image, Is.Null, "Image"); Assert.That(_production.InputFile, Is.Null, "InputFile"); Assert.That(_production.IsMultitrack, Is.False, "IsMultitrack"); Assert.That(_production.Length, Is.EqualTo(0), "Length"); Assert.That(_production.LengthTimestring, Is.EqualTo(String.Empty), "LengthTimestring"); Assert.That(_production.Metadata, Is.Not.Null, "Metadata"); Assert.That(_production.MultiInputFiles, Is.Not.Null, "MultiInputFiles"); Assert.That(_production.OutgoingServices, Is.Not.Null, "OutgoingServices"); Assert.That(_production.OutputBasename, Is.Null, "OutputBasename"); Assert.That(_production.OutputFiles, Is.Not.Null, "OutputFiles"); Assert.That(_production.Samplerate, Is.Null, "Samplerate"); Assert.That(_production.Service, Is.Null, "Service"); Assert.That(_production.SpeechRecognition, Is.Null, "SpeechRecognition"); Assert.That(_production.StartAllowed, Is.False, "StartAllowed"); Assert.That(_production.Statistics, Is.Null, "Statistics"); Assert.That(_production.Status, Is.EqualTo(ProductionStatus.IncompleteForm), "Status"); Assert.That(_production.StatusPage, Is.EqualTo($"https://auphonic.com/engine/status/{_production.Uuid}"), "StatusPage"); Assert.That(_production.StatusString, Is.EqualTo("Incomplete Form"), "StatusString"); Assert.That(_production.Thumbnail, Is.Null, "Thumbnail"); Assert.That(_production.UsedCredits, Is.Null, "UsedCredits"); Assert.That(String.IsNullOrWhiteSpace(_production.Uuid), Is.False, "Uuid is null or whitespace"); Assert.That(_production.WarningMessage, Is.EqualTo(String.Empty), "WarningMessage"); Assert.That(_production.WarningStatus, Is.Null, "WarningStatus"); Assert.That(_production.WaveformImage, Is.Null, "WaveformImage"); Assert.That(_production.Webhook, Is.Null, "Webhook"); }); }