public void FromDelimitedString_WithIncorrectSegmentId_ThrowsArgumentException() { Assert.Throws <ArgumentException>(() => { ISegment hl7Segment = new AddSegment(); hl7Segment.FromDelimitedString("ADA|^~&|3|4|5|6"); }); }
public void ToDelimitedString_WithAllProperties_ReturnsCorrectlySequencedFields() { ISegment hl7Segment = new AddSegment { AddendumContinuationPointer = "1" }; string expected = "ADD|1"; string actual = hl7Segment.ToDelimitedString(); Assert.Equal(expected, actual); }
public void FromDelimitedString_WithAllProperties_ReturnsCorrectlyInitializedFields() { ISegment expected = new AddSegment { AddendumContinuationPointer = "1" }; ISegment actual = new AddSegment(); actual.FromDelimitedString("ADD|1"); expected.Should().BeEquivalentTo(actual); }
public override void ViewDidLoad() { base.ViewDidLoad(); if (ViewModel != null && _isPresentedFirstTime) { _isPresentedFirstTime = false; ViewModel.ShowInitialViewModelsCommand.ExecuteAsync(null); } var set = this.CreateBindingSet <RootView, RootViewModel>(); set.Bind(AddSegment.Tap()).For(tap => tap.Command).To(vm => vm.AddSegmentCommand); set.Apply(); }
void ReleaseDesignerOutlets() { if (AddSegment != null) { AddSegment.Dispose(); AddSegment = null; } if (ContentView != null) { ContentView.Dispose(); ContentView = null; } if (SegmentControl != null) { SegmentControl.Dispose(); SegmentControl = null; } }
public ActionResult AddSegment(AddSegment command) { command.NewId = Guid.NewGuid(); Please.Do(command); return Json(command.NewId); }