public void ShouldWriteColumns() { var container = new XmlWriterContainer(); var mapping = new ManyToManyMapping(); mapping.AddColumn(new ColumnMapping { Name = "Column1" }); writer = container.Resolve<IXmlWriter<ManyToManyMapping>>(); writer.VerifyXml(mapping) .Element("column").Exists(); }
public void ShouldWriteCheckAttribute() { IXmlWriter<StoredProcedureMapping> writer; var container = new XmlWriterContainer(); writer = container.Resolve<IXmlWriter<StoredProcedureMapping>>(); var testHelper = new XmlWriterTestHelper<StoredProcedureMapping>(); testHelper.Check(x => x.Check, "none").MapsToAttribute("check"); testHelper.VerifyAll(writer); }
public void ShouldWriteColumns() { var container = new XmlWriterContainer(); var mapping = new ManyToManyMapping(); mapping.AddColumn(Layer.Defaults, new ColumnMapping("Column1")); writer = container.Resolve <IXmlWriter <ManyToManyMapping> >(); writer.VerifyXml(mapping) .Element("column").Exists(); }
public void ShouldResolveAllWriters() { var writers = from type in typeof(IXmlWriter <>).Assembly.GetTypes() from interfaceType in type.GetInterfaces() where interfaceType.IsGenericType && interfaceType.GetGenericTypeDefinition() == typeof(IXmlWriter <>) select interfaceType; foreach (var type in writers) { container.Resolve(type); } }
public void ShouldWriteCheckAttribute() { IXmlWriter <StoredProcedureMapping> writer; var container = new XmlWriterContainer(); writer = container.Resolve <IXmlWriter <StoredProcedureMapping> >(); var testHelper = new XmlWriterTestHelper <StoredProcedureMapping>(); testHelper.Check(x => x.Check, "none").MapsToAttribute("check"); testHelper.VerifyAll(writer); }
public void GetWriterFromContainer() { var container = new XmlWriterContainer(); writer = container.Resolve <IXmlWriter <KeyPropertyMapping> >(); }
public void GetWriterFromContainer() { var container = new XmlWriterContainer(); writer = container.Resolve <IXmlWriter <ElementMapping> >(); }
public void GetWriterFromContainer() { var container = new XmlWriterContainer(); writer = container.Resolve <IXmlWriter <ReferenceComponentMapping> >(); }
public void GetWriterFromContainer() { var container = new XmlWriterContainer(); writer = container.Resolve <IXmlWriter <NaturalIdMapping> >(); }
public void GetWriterFromContainer() { var container = new XmlWriterContainer(); writer = container.Resolve <IXmlWriter <ManyToOneMapping> >(); }
public void GetWriterFromContainer() { var container = new XmlWriterContainer(); writer = container.Resolve <IXmlWriter <CollectionMapping> >(); }
public void GetWriterFromContainer() { var container = new XmlWriterContainer(); writer = container.Resolve<IXmlWriter<CompositeElementMapping>>(); }
public void GetWriterFromContainer() { var container = new XmlWriterContainer(); writer = container.Resolve <IXmlWriter <JoinedSubclassMapping> >(); }
public void GetWriterFromContainer() { var container = new XmlWriterContainer(); writer = container.Resolve<IXmlWriter<ReferenceComponentMapping>>(); }
public void GetWriterFromContainer() { var container = new XmlWriterContainer(); writer = container.Resolve <IXmlWriter <DiscriminatorMapping> >(); }
public void GetWriterFromContainer() { var container = new XmlWriterContainer(); writer = container.Resolve<IXmlWriter<ICollectionRelationshipMapping>>(); }
public void GetWriterFromContainer() { var container = new XmlWriterContainer(); writer = container.Resolve<IXmlWriter<IdMapping>>(); }
public void GetWriterFromContainer() { var container = new XmlWriterContainer(); writer = container.Resolve <IXmlWriter <CompositeIndexMapping> >(); }