public void TransformToCustomOptionObject_OptionObjectWithProperties_PropertyValuesAreEqual() { OptionObjectTransform transform = InitTransform(); var optionObject = MockBasicOptionObject(); CustomOptionObject result = transform.TransformToCustomOptionObject(optionObject); var expected = new object[] { optionObject.EntityID, optionObject.ErrorMesg, optionObject.Facility, optionObject.OptionId, optionObject.OptionStaffId, optionObject.OptionUserId, optionObject.SystemCode, optionObject.EpisodeNumber, optionObject.ErrorCode, }; var actual = new object[] { result.EntityID, result.ErrorMesg, result.Facility, result.OptionId, result.OptionStaffId, result.OptionUserId, result.SystemCode, result.EpisodeNumber, (double)result.ErrorCode, }; Assert.AreEqual(expected, actual); }
public void TransformToCustomOptionObject_NonNullOptionObject_ReturnsCustomOptionObject() { OptionObjectTransform transform = InitTransform(); var optionObject = MockBasicOptionObject(); CustomOptionObject result = transform.TransformToCustomOptionObject(optionObject); Assert.IsInstanceOf(typeof(CustomOptionObject), result); }
protected BaseScriptLink(OptionObject optionObject) { this.OptionObject = optionObject; this.OptionObjectTransform = new OptionObjectTransform(); }