private void WriteProfile() { string profilePath = "Resources\\Profiles.json"; AVServerConfig config = new MssqlConfig() { AvDbHost = "test", AvDbName = "test", AvComponent = "test", AvJetspeedDbName = "test", AvJetspeedUser = "******", AvUser = "******", DatabaseType = "mssql", Port = "1433" }; profileService = new ProfileService(profilePath); ProfileModel testProfile = new ProfileModel() { Name = "Test Profile", DatabaseConfiguration = config, isProtected = false }; profileService.AddProfileToList(testProfile); profileService.AddProfileToList(testProfile); profileService.SaveProfiles(); }