public void If_expand_is_not_allowed_then_By_should_throw_api_exception()
        {
            var expanders = new List <string>();
            var subject   = new ExpandParameterBuilder <TestExpandMetaEntity>(expanders);

            Action action = () => subject.With(p => p.NotAllowedExpandMember);

            action.Should().Throw <ApiException>();
        }
        public void With_should_add_Expander()
        {
            var expanders = new List <string>();
            var subject   = new ExpandParameterBuilder <TestExpandMetaEntity>(expanders);

            subject.With(p => p.L1Entity.L2Entity);

            expanders.Should().HaveCount(1);
            expanders[0].Should().Be("entity_one_level.entity_two_level");
        }