public void FindPreferenceTest() { var preference = NewPreference(); preference.Save(); Assert.IsNotNull(preference.Id); var findPreference = Preference.FindById(preference.Id); Assert.IsNotNull(findPreference); Assert.AreEqual(preference.Id, findPreference.Id); }
public void FindPreferenceRequestOptionsTest() { var preference = NewPreference(); preference.Save(); Assert.IsNotNull(preference.Id); var requestOptions = NewRequestOptions(); var findPreference = Preference.FindById(preference.Id, false, requestOptions); Assert.IsNotNull(findPreference); Assert.AreEqual(preference.Id, findPreference.Id); }
public void Preference_FindByIDShouldbeOk() { Preference foundedPreference = Preference.FindById(LastPreference.Id); Assert.AreEqual(foundedPreference.Id, LastPreference.Id); }