public void Skip_skip_fixed_fields_in_GetFieldValues()
        {
            var view = new NZazuView
            {
                FormDefinition = new FormDefinition
                {
                    Fields = new[]
                    {
                        new FieldDefinition {
                            Key = "caption", Type = "label"
                        },
                        new FieldDefinition {
                            Key = "name", Type = "string"
                        }
                    }
                }
            };

            var expected = new Dictionary <string, string> {
                { "name", "John" }
            };

            view.SetFieldValues(expected);

            var actual = view.GetFieldValues();

            actual.Should().Contain(expected);
        }
        public void Recurse_on_group_fields_in_GetFieldValues()
        {
            var view = new NZazuView
            {
                FormDefinition = new FormDefinition
                {
                    Fields = new[]
                    {
                        new FieldDefinition {
                            Key = "name", Type = "string"
                        },
                        new FieldDefinition
                        {
                            Key    = "group",
                            Type   = "group",
                            Fields = new[]
                            {
                                new FieldDefinition {
                                    Key = "group.name", Type = "string"
                                }
                            }
                        }
                    }
                }
            };

            var expected = new Dictionary <string, string>
            {
                { "name", "John" },
                { "group.name", "Jim" }
            };

            view.SetFieldValues(expected);

            var actual = view.GetFieldValues();

            actual.Should().Contain(expected);
            actual.Keys.Should().Contain("__focusOn");
        }