public void ConvertPreferedProfile() { var row = new UserProfileRow(Guid.NewGuid(), StringHelper.ValidString()) { OwnerIdentifier = Guid.NewGuid(), PreferedProfile = true, }; var item = row.Convert(); Assert.AreEqual <Guid>(row.ApplicationIdentifier, item.ApplicationIdentifier); Assert.AreEqual <Guid>(row.OwnerIdentifier, item.OwnerIdentifier); Assert.AreEqual <string>(row.RowKey, item.Handle); Assert.IsTrue(row.PreferedProfile.Value); }
public void Convert() { var row = new UserProfileRow(Guid.NewGuid(), StringHelper.ValidString()) { OwnerIdentifier = Guid.NewGuid(), Word = StringHelper.ValidString(), }; var item = row.Convert(); Assert.AreEqual <Guid>(row.ApplicationIdentifier, item.ApplicationIdentifier); Assert.AreEqual <Guid>(row.OwnerIdentifier, item.OwnerIdentifier); Assert.AreEqual <string>(row.RowKey, item.Handle); Assert.AreEqual <string>(row.Word, item.Word); Assert.IsFalse(item.PreferedProfile); Assert.AreEqual <int>(0, item.Points); }