Esempio n. 1
0
        public void ValueObjectWhenSetFieldName()
        {
            var sut = new ValueObjectFake("Name", "FieldName");

            sut.SetFieldName("NewFieldName");
            Assert.AreEqual("NewFieldName", sut.FieldName);
        }
Esempio n. 2
0
        public EntityFake(Guid id,
                          ValueObjectFake valueObjectFake,
                          string fieldName = null)
            : base(id, fieldName)
        {
            ValueObjectFake = valueObjectFake;

            ValueObjectFake?.SetFieldName(GetPropertyName(() => ValueObjectFake));

            Validate();
        }