public void RandomSetProperties() { DefaultValue_Int = RandomInt(100); DefaultValue_String = RandomString(10); DefaultValueByMethod_String = RandomString(10); DefaultValueNewInstance_Instance = new SubInstance() { Field = RandomGuid() }; int i = RandomInt(5, 10); while (i-- > 0) { SubDatabase.Collection.Add(new SubInstance() { Field = RandomGuid() }); } }
public Database() { SubInstanceBase = new SubInstance(); SubDatabase = new SubDatabase(); NoCtorInstance = new NoCtorInstance(1); }