public void ToRelativityObject_ObjectArtifactIdSet_ReturnsCorrectArtifactIdSet()
        {
            //ARRANGE
            var doc = new kCura.Relativity.Client.DTOs.Document(123);

            //ACT
            var result = doc.ToRelativityObject();

            //ASSERT
            Assert.Equal(123, result.ArtifactId);
        }
        public void ToRelativityObject_FieldValueHasArtifactId_ReturnsArtifactIdSet()
        {
            //ARRANGE
            var doc = new kCura.Relativity.Client.DTOs.Document();

            doc.Fields = new System.Collections.Generic.List <kCura.Relativity.Client.DTOs.FieldValue>();
            doc.Fields.Add(new kCura.Relativity.Client.DTOs.FieldValue(123));

            //ACT
            var result = doc.ToRelativityObject();

            //ASSERT
            Assert.NotEmpty(result.FieldValues);
            Assert.NotNull(result.FieldValues.SingleOrDefault()?.Field);
            Assert.Equal(123, result.FieldValues.Single().Field.ArtifactId);
        }
        public void ToRelativityObject_FieldValueHasValue_ReturnsValueSet()
        {
            //ARRANGE
            var doc = new kCura.Relativity.Client.DTOs.Document();

            doc.Fields = new System.Collections.Generic.List <kCura.Relativity.Client.DTOs.FieldValue>();
            doc.Fields.Add(new kCura.Relativity.Client.DTOs.FieldValue("field Name", "this field"));

            //ACT
            var result = doc.ToRelativityObject();

            //ASSERT
            Assert.NotEmpty(result.FieldValues);
            Assert.NotNull(result.FieldValues.FirstOrDefault()?.Field);
            Assert.Equal("this field", result.FieldValues.First().Value);
        }