public void Repository_should_save_and_load_model() { var repository = new YamlSystemModelRepository(new NullLoggerFactory()); var expected = _fixture.Create <SystemModel>(); repository.Save(expected, _directory); var actual = repository.Load(_directory); AssertExt.AssertDeepEqualsTo(actual, expected); }
private static async Task UploadDefinitions(Options options) { var model = new YamlSystemModelRepository(_loggerFactory).Load(options.DefinitionsDir); await new ModelUploader(await BuildRepository(options), _loggerFactory).UploadModel(model); }
private static void UploadDefinitions(Options options) { var model = new YamlSystemModelRepository().Load(options.DefinitionsDir); new ModelUploader(options.OctopusUrl, options.OctopusApiKey).UploadModel(model); }