public void should_read_date_string_from_creation_date_time() { var header = new FunctionalGroupHeader("GS*BE*SENDER CODE*RECEIVER CODE*19991231*0802*1*X*005010X220"); header.CreationDateTime = DateTime.Today; header.DateString.Should().Be(DateTime.Today.ToString(openx12.Constants.DateFormatting.CCYYMMDD)); }
public void should_read_time_string_from_creation_date_time() { var header = new FunctionalGroupHeader("GS*BE*SENDER CODE*RECEIVER CODE*19991231*0802*1*X*005010X220"); var now = DateTime.Now; header.CreationDateTime = now; header.TimeString.Should().Be(now.ToString(openx12.Constants.TimeFormatting.HHMM)); }
public void should_instantiate_funcitonal_group_header_with_properties() { var header = new FunctionalGroupHeader { FunctionalIdentifierCode = "BE", ApplicationSendersCode = "SENDER CODE", ApplicationReceiversCode = "RECEIVER CODE", CreationDateTime = new DateTime(1999, 12, 31, 08, 02, 00), GroupControlNumber = "1", ResponsibleAgencyCode = "X", VersionReleaseIndustryIdentifier = "005010X220" }; header.Value.Should().Be(_FunctionalGroupString); }
public void Setup() { _Header = new FunctionalGroupHeader(_FunctionalGroupString); }