public void Initialize() { _configLocation = @"C:\config\provisionRules.json"; IAgentProvisionerLoader provisionLoader = new AgentProvisionerLoader(); _agentProvisioners = provisionLoader.LoadAgentProvisioners(new FileInfo(_configLocation)); }
public void Loader_AgentProvisioner_load_from_json() { string json = File.ReadAllText("Samples\\agentProvisioners.json"); IAgentProvisionerLoader loader = new AgentProvisionerLoader(); AgentProvisioner[] provisioners = loader.LoadAgentProvisioners(json); Assert.AreEqual(2, provisioners.Length); Assert.IsTrue(provisioners[1].AdvancedAttributeSetters.Length >= 1); }