public EntityWithDictionaryType Clone() { EntityWithDictionaryType entity = new EntityWithDictionaryType(); entity.Id = Id; entity.DictionaryType = new Dictionary <string, string>(DictionaryType); return(entity); }
public static EntityWithDictionaryType GetRandomInstance(int seed = 1) { EntityWithDictionaryType entity = new EntityWithDictionaryType(); entity.Id = Guid.NewGuid().ToString(); entity.DictionaryType = new Dictionary <string, string>() { { "key_" + seed, "val_" + seed } }; return(entity); }
public void AssertEquals(EntityWithDictionaryType actualEntity) { Assert.AreEqual(Id, actualEntity.Id); Assert.AreEqual(DictionaryType, actualEntity.DictionaryType); }