public void ProcessProduct_NoRelations_Archive() { var productId = SetupNoRelation(); Assert.AreEqual(1, Articles.Count()); Assert.IsTrue(Articles.All(a => a.Id == productId && a.Archived)); }
public void ProcessProduct_M2ORelation_ArchiveReference() { var productId = SetupM2ORelation(null, DeletingMode.Delete); Assert.AreEqual(1, Articles.Count(a => a.Id == productId)); Assert.AreEqual(1, Articles.Count(a => a.Id != productId)); Assert.IsTrue(Articles.All(a => a.Archived)); }