Пример #1
0
        public void Annotations_are_added_to_model_when_passed_to_any_builder_method()
        {
            var builder = new ColumnBuilder();

            var annotations = new Dictionary <string, AnnotationValues>
            {
                { "A1", new AnnotationValues("O1", "N1") },
                { "A2", new AnnotationValues("O2", "N2") }
            };

            VerifyAnnotations(builder.Binary(annotations: annotations));
            VerifyAnnotations(builder.Boolean(annotations: annotations));
            VerifyAnnotations(builder.Byte(annotations: annotations));
            VerifyAnnotations(builder.DateTime(annotations: annotations));
            VerifyAnnotations(builder.DateTimeOffset(annotations: annotations));
            VerifyAnnotations(builder.Decimal(annotations: annotations));
            VerifyAnnotations(builder.Double(annotations: annotations));
            VerifyAnnotations(builder.HierarchyId(annotations: annotations));
            VerifyAnnotations(builder.Geography(annotations: annotations));
            VerifyAnnotations(builder.Geometry(annotations: annotations));
            VerifyAnnotations(builder.Guid(annotations: annotations));
            VerifyAnnotations(builder.Int(annotations: annotations));
            VerifyAnnotations(builder.Long(annotations: annotations));
            VerifyAnnotations(builder.Short(annotations: annotations));
            VerifyAnnotations(builder.Single(annotations: annotations));
            VerifyAnnotations(builder.String(annotations: annotations));
            VerifyAnnotations(builder.Time(annotations: annotations));
        }