コード例 #1
0
        public void ApiProjectsUseAllowedContexts()
        {
            var apiAssemblies = AssembliesFixture.GetApiAssemblies();

            foreach (var apiAssembly in apiAssemblies)
            {
                apiAssembly.AssertContextNameIsAllowed(PackageNamingConstants.BoundedContexts);
            }
        }
コード例 #2
0
        public void ApiProjectsUseAllowedContexts()
        {
            var apiAssemblies = AssembliesFixture.GetApiAssemblies();

            foreach (var apiAssembly in apiAssemblies)
            {
                var allowedNames = new List <string>();
                allowedNames.AddRange(PackageNamingConstants.BoundedContexts);
                allowedNames.AddRange(PackageNamingConstants.ApiServices);

                apiAssembly.AssertContextNameIsAllowed(allowedNames);
            }
        }