private LiveModel ConfigureLiveModel() { Configuration config; ApiStatus apiStatus = new ApiStatus(); if (!Configuration.TryLoadConfigurationFromJson(PseudoLocConfigJson, out config, apiStatus)) { Assert.Fail("Failed to parse pseudolocalized configuration JSON: " + apiStatus.ErrorMessage); } TempFileDisposable interactionDisposable = new TempFileDisposable(); this.TestCleanup.Add(interactionDisposable); TempFileDisposable observationDisposable = new TempFileDisposable(); this.TestCleanup.Add(observationDisposable); config["interaction.file.name"] = interactionDisposable.Path; config["observation.file.name"] = observationDisposable.Path; LiveModel liveModel = new LiveModel(config); liveModel.Init(); liveModel.RefreshModel(); return(liveModel); }