public Docflow( Guid id, Guid organizationId, DocflowType type, DocflowStatus status, DocflowState successState, List <Link> links, DateTime sendDateTime, DateTime?lastChangeDateTime, DocflowDescription description) { Id = id; OrganizationId = organizationId; Type = type; Status = status; SuccessState = successState; Links = links; SendDateTime = sendDateTime; LastChangeDateTime = lastChangeDateTime; Description = description; Documents = new List <Document>(); }
public void Should_initialize_with_given_urn() { var docflowState = new DocflowState("urn:docflow-state:neutral"); docflowState.ToString().Should().Be("urn:docflow-state:neutral"); }
public void Should_fail_when_urn_not_belong_to_docflow_type_namespace() { Action action = () => _ = new DocflowState("urn:document:fss-sedo-error-exchange-error"); action.Should().Throw <ArgumentException>(); }
public void Should_fail_when_given_invalid_urn(string urn) { Action action = () => _ = new DocflowState(urn); action.Should().Throw <Exception>(); }