public void T012_EstateSettingsRandomStorage() { TestHelpers.InMethod(); // Letting estate store generate rows to database for us EstateSettings originalSettings = db.LoadEstateSettings(REGION_ID, true); new PropertyScrambler <EstateSettings>() .DontScramble(x => x.EstateID) .Scramble(originalSettings); // Saving settings. db.StoreEstateSettings(originalSettings); // Loading settings to another instance variable. EstateSettings loadedSettings = db.LoadEstateSettings(REGION_ID, true); // Checking that loaded values are correct. Assert.That(loadedSettings, Constraints.PropertyCompareConstraint(originalSettings)); }
public void StoreEstateSettings(EstateSettings es) { m_database.StoreEstateSettings(es); }