public void TestDeriveFromValue() { var someId = "A-00151244-$fe9006b"; var testResult = new AccountId(someId); Assert.IsNotNull(testResult); Assert.AreEqual(someId, testResult.Value); Assert.IsTrue(testResult.Validate()); var anotherValue = testResult.GetRandom(); System.Console.WriteLine(anotherValue); Assert.IsTrue(testResult.Validate(anotherValue)); }