示例#1
0
        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);
        }
示例#2
0
        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);
        }
示例#3
0
        public void Preference_FindByIDShouldbeOk()
        {
            Preference foundedPreference = Preference.FindById(LastPreference.Id);

            Assert.AreEqual(foundedPreference.Id, LastPreference.Id);
        }