public void IsTransientTest() { Domain1 a = new Domain1(); Assert.IsTrue(a.IsTransient()); a.DomaionBizId = "a"; Assert.IsFalse(a.IsTransient()); }
public void GetHashCodeTest() { var a = new Domain1(); var b = new Domain1(); Assert.AreNotEqual(a, b); int aHashcode = a.GetHashCode(); a.DomaionBizId = "a"; Assert.AreEqual(aHashcode, a.GetHashCode()); }