public void TypeTest() { Assert.IsNull(Obj.Type); var t = ProductType.Random(); t.UniqueId = Obj.TypeId; ProductTypes.Instance.AddRange(ProductTypes.Random()); ProductTypes.Instance.Add(t); Assert.AreEqual(t, Obj.Type); }