Example #1
0
            public async Task Other_entities_of_the_same_type_are_not_affected()
            {
                var model = new NestedConfigureModels.Model2();

                var result = await _fixture.AugmentAsync(model) as AObject;

                var nested = result["Nested2"].Cast <AObject>();

                nested.Should().NotContainKeys("ParentId", "Some");
            }
Example #2
0
            public async Task Picks_up_nested_state_and_configuration()
            {
                var model = new NestedConfigureModels.Model2();

                var result = await _fixture.AugmentAsync(model) as AObject;

                var nested = result["Nested1"].Cast <AObject>();

                nested["ParentId"].Cast <int>().Should().Be(model.Id);
                nested["Some"].Cast <string>().Should().Be("some");
            }