public static EntityWithArrayType GetRandomInstance(int seed = 1) { EntityWithArrayType entity = new EntityWithArrayType(); entity.Id = Guid.NewGuid().ToString(); entity.ArrayType = new string[] { seed.ToString() }; return(entity); }
public EntityWithArrayType Clone() { EntityWithArrayType entity = new EntityWithArrayType(); entity.Id = Id; List <string> strList = new List <string>(); strList.AddRange(ArrayType); entity.ArrayType = strList.ToArray(); return(entity); }
public void AssertEquals(EntityWithArrayType actualEntity) { Assert.AreEqual(Id, actualEntity.Id); Assert.AreEqual(ArrayType, actualEntity.ArrayType); }