예제 #1
0
        public void GenerateOperationDocument_GetHero()
        {
            _generator.Generate(
                _codeWriter,
                IntegrationDescriptors.CreateGetHeroQueryDescriptor(),
                out _);

            _stringBuilder.ToString().MatchSnapshot();
        }
        public void GenerateEntityType_Human()
        {
            _generator.Generate(
                _codeWriter,
                IntegrationDescriptors.CreateHumanEntityTypeDescriptor(),
                out _);

            _stringBuilder.ToString().MatchSnapshot();
        }
예제 #3
0
        public void GenerateResultBuilder()
        {
            _generator.Generate(
                _codeWriter,
                IntegrationDescriptors.CreateGetHeroResultBuilderDescriptor(),
                out _);

            _stringBuilder.ToString().MatchSnapshot();
        }
        public void GenerateResultMapper_FriendsConnection()
        {
            _generator.Generate(
                _codeWriter,
                IntegrationDescriptors.CreateFriendsConnectionDescriptor(),
                out _);

            _stringBuilder.ToString().MatchSnapshot();
        }
        public void GenerateResultMapper_HumanHero()
        {
            _generator.Generate(
                _codeWriter,
                IntegrationDescriptors.CreateHumanHeroNamedTypeDescriptor(),
                out _);

            _stringBuilder.ToString().MatchSnapshot();
        }
예제 #6
0
        public void GenerateResult_IHero()
        {
            _generator.Generate(
                _codeWriter,
                IntegrationDescriptors.CreateIHeroDescriptor().InnerType(),
                out _);

            _stringBuilder.ToString().MatchSnapshot();
        }