public override void SetUp() { base.SetUp(); var foo = new Foo { FooName = "TheFooName", Other = new Other { OtherName = "TheOtherName" } }; foo.AddBar(new Bar { BarName = "BarName1" }); foo.AddBar(new Bar { BarName = "BarName2" }); _document = Mapper.ToDocument(foo); }