public void Should_Persist_Entity_With_Additional_Mcs()
        {
            EntityWithEav entity = null;

            Execute(inContextOf: act =>
            {
                entity = new EntityWithEav();

                var mcsAttribute = new McsAttribute
                                       {
                                           Name = "McsAttribute",
                                           StringWithCulture = new StringWithCulture("Pl-pl", "po polsku")
                                       };

                entity.AddMcsAttribute(mcsAttribute);
                act.Save(entity);
            });

            Execute(inContextOf: assert =>
            {
                entity = assert.Get<EntityWithEav>(entity.Id);
                Assert.That(entity, Is.Not.Null);
                Assert.That(entity.McsAttributes[0].StringWithCulture.Value, Is.EqualTo("po polsku"));
            });
        }
        public void Should_Persist_Entity_With_Additional_Values_Of_Simple_Types()
        {
            EntityWithEav entity = null;

            Execute(inContextOf: act =>
            {
                entity = new EntityWithEav();
                entity.AddAttribute(new Attribute { Name = "TestAttribute", Value = 123 });
                entity.AddAttribute(new Attribute { Name = "TestAttribute2", Value = "abc" });
                entity.AddAttribute(new Attribute { Name = "TestAttribute3", Value = new DateTime(2001, 01, 01) });

                act.Save(entity);
            });

            Execute(inContextOf: assert =>
            {
                entity = assert.Get<EntityWithEav>(entity.Id);
                Assert.That(entity.Attributes[0].Value, Is.EqualTo(123));
                Assert.That(entity.Attributes[1].Value, Is.EqualTo("abc"));
                Assert.That(entity.Attributes[2].Value, Is.EqualTo(new DateTime(2001, 01, 01)));
            });
        }