public void Initialize() { var text = FileUtils.Read(@"Properties/testParameters.json"); var mongoSettings = JSONUtils.Deserialize <MongoSettings>(text); _settings = Options.Create(mongoSettings); _personRepository = new MongoRepository <Person>(_settings); A.Configure <Person>() .Fill(p => p.Address, A.New <Address>()) .Fill(p => p.Single, true); }