public void SetUp() { converterCollectionFactory = new TestConverterCollectionFactory(); pathFormatterCollection = new PathFormatterCollection(); var webDataToDataConverterCollection = new TestConverterCollection <WebData, Data>(pathFormatterCollection, configurator => { configurator.Target(data => data.Items.Each().Id).Set(data => data.Items.Current().Id); }); var modelDataToWebDataConverterCollection = new TestConverterCollection <ModelData, WebData>(pathFormatterCollection, configurator => { configurator.Target(data => data.Items.Each().Id).Set(data => data.Items.Current().Id); }); converterCollectionFactory.Register(webDataToDataConverterCollection); converterCollectionFactory.Register(modelDataToWebDataConverterCollection); }
protected override void SetUp() { base.SetUp(); pathFormatterCollection = new PathFormatterCollection(); }