Load() public static method

public static Load ( ) : TestSettings
return TestSettings
        public void InvokeCoreNodeTemplateWithAuthenticationBearerSucceeds()
        {
            //Test runs only if there is a file TestSettings.txt in the project folders containing the settings in the format
            //{key}={value}\n

            // Arrange
            TestSettings settings = TestSettings.Load();
            string       token    = settings.GetValue("AccessToken");
            var          svc      = new biz.dfch.CS.Appclusive.Api.Core.Core(_uri);

            svc.Credentials = new System.Net.NetworkCredential(biz.dfch.CS.Appclusive.Api.Core.Core.AuthorisationBaererUserName, token);

            var _uriAction = new Uri(_uriPrefix + "Core/Nodes/Template");

            // Act
            var result = svc.InvokeEntitySetActionWithSingleResult <Node>("Nodes", "Template", null);

            // Assert
            Assert.IsNotNull(result);
        }
        public void InvokeCoreNodeTemplateWithTenantIdSucceeds()
        {
            //Test runs only if there is a file TestSettings.txt in the project folders containing the settings in the format
            //{key}={value}\n

            // Arrange
            TestSettings settings = TestSettings.Load();
            string       username = settings.GetValue("Username");
            string       password = settings.GetValue("Password");
            string       tenantId = settings.GetValue("TenantId");
            var          svc      = new biz.dfch.CS.Appclusive.Api.Core.Core(_uri);

            svc.Credentials = new System.Net.NetworkCredential(username, password);
            svc.TenantID    = tenantId;

            var _uriAction = new Uri(_uriPrefix + "Core/Nodes/Template");

            // Act
            var result = svc.InvokeEntitySetActionWithSingleResult <Node>("Nodes", "Template", null);

            // Assert
            Assert.IsNotNull(result);
        }