protected BaseParseTests()
        {
            Options = new JsonApiOptions();

            // @formatter:wrap_chained_method_calls chop_always
            // @formatter:keep_existing_linebreaks true

            ResourceGraph = new ResourceGraphBuilder(Options, NullLoggerFactory.Instance)
                            .Add <Blog>()
                            .Add <BlogPost>()
                            .Add <Label>()
                            .Add <Comment>()
                            .Add <WebAccount>()
                            .Add <AccountPreferences>()
                            .Build();

            // @formatter:wrap_chained_method_calls restore
            // @formatter:keep_existing_linebreaks restore

            Request = new JsonApiRequest
            {
                PrimaryResource = ResourceGraph.GetResourceContext <Blog>(),
                IsCollection    = true
            };
        }
예제 #2
0
        protected BaseParseTests()
        {
            Options = new JsonApiOptions();

            ResourceGraph = new ResourceGraphBuilder(Options, NullLoggerFactory.Instance)
                            .Add <Blog>()
                            .Add <BlogPost>()
                            .Add <Label>()
                            .Add <Comment>()
                            .Add <WebAccount>()
                            .Add <AccountPreferences>()
                            .Build();

            Request = new JsonApiRequest
            {
                PrimaryResource = ResourceGraph.GetResourceContext <Blog>(),
                IsCollection    = true
            };
        }
예제 #3
0
        protected BaseParseTests()
        {
            Options = new JsonApiOptions();

            ResourceGraph = new ResourceGraphBuilder(Options, NullLoggerFactory.Instance)
                            .Add <Blog>()
                            .Add <Article>()
                            .Add <Author>()
                            .Add <Address>()
                            .Add <Country>()
                            .Add <Revision>()
                            .Add <Tag>()
                            .Build();

            Request = new JsonApiRequest
            {
                PrimaryResource = ResourceGraph.GetResourceContext <Blog>(),
                IsCollection    = true
            };
        }