/// <summary> /// Creates a fake complex row. /// </summary> /// <param name="withDependentEntity"> /// A value indicating whether to create the row with a dependent entity. /// </param> /// <returns> /// A new <see cref="ComplexFlatRow"/> instance. /// </returns> public static ComplexRaisedRow CreateFakeRaisedComplexRow(bool withDependentEntity) { var createdBy = new MultiReferenceRow { Description = MyString, FakeMultiReferenceEntityId = MyInt, UniqueName = MyString }; var fakeSubSubEntity = new SubSubRow { FakeSubSubEntityId = MyInt, UniqueName = MyString, Description = MyString }; var fakeSubEntity = new SubRow { FakeSubEntityId = MyInt, FakeSubSubEntityId = MyInt, SubSubEntity = fakeSubSubEntity, UniqueName = MyString, UniqueOtherId = MyShort, Description = MyString }; var modifiedBy = new MultiReferenceRow { FakeMultiReferenceEntityId = MyInt, Description = MyString, UniqueName = MyString }; var fakeDependentEntity = new DependentRow { FakeDependentEntityId = MyInt, DependentIntegerValue = MyInt, DependentTimeValue = MyDateTimeOffset }; return(new ComplexRaisedRow { CreatedBy = createdBy, UniqueName = MyString, FakeSubEntityId = MyInt, SubEntity = fakeSubEntity, ModifiedBy = modifiedBy, DependentEntity = withDependentEntity ? fakeDependentEntity : null, ModifiedTime = MyDateTimeOffset, Description = MyString, FakeEnumerationId = MyInt, CreationTime = MyDateTimeOffset, FakeOtherEnumerationId = MyInt, ComplexEntityId = MyInt }); }
/// <summary> /// Initializes a new instance of the <see cref="XivSubRow" /> class. /// </summary> /// <param name="sheet"><see cref="IXivSheet" /> containing this object.</param> /// <param name="sourceRow"><see cref="IRelationalRow" /> to read data from.</param> public XivSubRow(IXivSheet sheet, IRelationalRow sourceRow) : base(sheet, sourceRow) { _SourceSubRow = (SubRow)sourceRow; }