public GoogleSchemaGenerator(IEnumerable<ISchemaDecorator> decorators, string schemaNamespace)
 {
     decorators.ThrowIfNull("decorators");
     schemaNamespace.ThrowIfNull("schemaNamespace");
     this.decorators = new List<ISchemaDecorator>(decorators).AsReadOnly();
     this.schemaNamespace = schemaNamespace;
     this.implementationDetailsGenerator = new ImplementationDetailsGenerator();
 }
 public void GenerateDetailsTest()
 {
     var gen = new ImplementationDetailsGenerator();
     Assert.Throws<ArgumentNullException>(() => gen.GenerateDetails(null));
     
     // Test the generation for the mock service.
     var service = new MockService();
     IDictionary<JsonSchema, SchemaImplementationDetails> dic = gen.GenerateDetails(service);
     Assert.IsNotNull(dic);
     Assert.AreEqual(dic.Count, 0);
 }