private static ApplicationDeployer CreateDeployer(string outputFolderPath) { var sd = new ServiceDeployer { CodePackageFiles = new List <string> { Assembly.GetExecutingAssembly().Location }, ServiceTypeImplementation = typeof(StoreTestService), ServiceTypeName = Constants.ServiceTypeName, MinReplicaSetSize = 2, TargetReplicaSetSize = 2, Partition = new SingletonPartitionSchemeDescription(), ConfigPackageName = Constants.ConfigurationPackageName, HasPersistedState = true, }; sd.Endpoints.Add(Tuple.Create(Constants.EndpointName, EndpointProtocol.Http)); sd.ConfigurationSettings.Add(Tuple.Create(Constants.ConfigurationSectionName, Constants.ConfigurationSettingName, outputFolderPath)); ApplicationDeployer dep = new ApplicationDeployer { Name = Constants.ApplicationName, Services = { sd } }; return(dep); }
private ApplicationDeployer GetDeployer(string appName, ServiceDeployer service, string testOutputPath) { ApplicationDeployer dep = new ApplicationDeployer() { Name = appName, }; service.ConfigPackageName = SanityTest.ConfigurationPackageName; dep.Services.Add(service); dep.Services[0].ConfigurationSettings.Add(Tuple.Create(SanityTest.ConfigurationSectionName, SanityTest.ConfigurationParameterName, testOutputPath)); return(dep); }