private void ValidateHistory(WorkflowTriggerHistory actual) { Assert.NotEmpty(actual.Correlation.ClientTrackingId); Assert.True(actual.Fired); Assert.NotEmpty(actual.Id); Assert.NotEmpty(actual.Run.Name); Assert.NotNull(actual.StartTime); Assert.NotNull(actual.EndTime); }
private void ValidateTriggerHistory1(WorkflowTriggerHistory history) { Assert.True(this.ValidateIdFormat(id: history.Id, entityTypeName: "workflows", entitySubtypeName: "triggers", entityMicrotypeName: "histories")); Assert.Equal("08587646315851320553", history.Name); Assert.Equal("Microsoft.Logic/workflows/triggers/histories", history.Type); Assert.Equal(2015, history.StartTime.Value.Year); Assert.Equal(06, history.StartTime.Value.Month); Assert.Equal(23, history.StartTime.Value.Day); Assert.Equal(21, history.StartTime.Value.Hour); Assert.Equal(47, history.StartTime.Value.Minute); Assert.Equal(00, history.StartTime.Value.Second); Assert.Equal(DateTimeKind.Utc, history.StartTime.Value.Kind); Assert.Equal(2015, history.EndTime.Value.Year); Assert.Equal(06, history.EndTime.Value.Month); Assert.Equal(23, history.EndTime.Value.Day); Assert.Equal(21, history.EndTime.Value.Hour); Assert.Equal(47, history.EndTime.Value.Minute); Assert.Equal(30, history.EndTime.Value.Second); Assert.Equal(DateTimeKind.Utc, history.EndTime.Value.Kind); Assert.Equal(WorkflowStatus.Succeeded, history.Status); Assert.Equal("OK", history.Code); Assert.Equal("bfeb415e-0419-4c6e-8b1f-31b2bc0ba431", history.TrackingId); Assert.Equal("https://flow.blob.core.windows.net/in", history.InputsLink.Uri); Assert.Equal("\"0x8D28D2CDBC725AF\"", history.InputsLink.ContentVersion); Assert.Equal(690, history.InputsLink.ContentSize); Assert.Equal("md5", history.InputsLink.ContentHash.Algorithm); Assert.Equal("f2fmvRYYLWeo4OQ1djP0hQ==", history.InputsLink.ContentHash.Value); Assert.Equal("https://flow.blob.core.windows.net/out", history.OutputsLink.Uri); Assert.Equal("\"0x8D28D2CDBE8B850\"", history.OutputsLink.ContentVersion); Assert.Equal(543, history.OutputsLink.ContentSize); Assert.Equal("md5", history.OutputsLink.ContentHash.Algorithm); Assert.Equal("Fq2wzoMQpAJYmc7wm/nqHg==", history.OutputsLink.ContentHash.Value); }