Esempio n. 1
0
        void inserting_a_record_that_has_non_value_type_properties()
        {
            before = () =>
            {
                seed.CreateTable("Records", new dynamic[]
                {
                    seed.Id(),
                    new { Name = "nvarchar(255)" }
                }).ExecuteNonQuery();

                recordToInsert = new { Name = "foo", NotAValueType = new { Name = "bar" } };
            };

            act = () => records.Insert(recordToInsert);

            it["the record is inserted (ignoring the reference type)"] = () =>
            {
                var record = records.All().First();

                ((string)record.Name).should_be("foo");
            };
        }