Exemplo n.º 1
0
        public void Should_Pass_When_Queue_Count_Is_Not_Zero()
        {
            // Arrange

            // Act
            var results = _pureCloud.GetQueues();

            // Assert
            Assert.AreNotEqual(0, results.Count);
        }
Exemplo n.º 2
0
        public void TestInitialize()
        {
            _pureCloud = new PureCloud
            {
                ClientId     = StaticConfig.ClientId,
                ClientSecret = StaticConfig.ClientSecret,
                Environment  = StaticConfig.Environment
            };

            _pureCloud.Login();
            _pureCloud.GetUsers();
            _pureCloud.GetQueues();
            _pureCloud.GetLanguages();
        }
Exemplo n.º 3
0
        public void TestInitialize()
        {
            _pureCloud = new PureCloud
            {
                ClientId     = StaticConfig.ClientId,
                ClientSecret = StaticConfig.ClientSecret,
                Environment  = StaticConfig.Environment
            };
            _pureCloud.Login();

            var args = new string[] { $"/clientid={StaticConfig.ClientId}",
                                      $"/clientsecret={StaticConfig.ClientSecret}",
                                      $"/environment={StaticConfig.Environment}",
                                      $"/target-sql={StaticConfig.Targetsql}" };

            _pureCloud.GetQueues();
            _pureCloud.GetUsers();
            _pureCloud.GetWrapUpCodes();

            _sql.Initialize(args);
            _sql.InitializeDictionaries(_pureCloud.ListOfQueues, _pureCloud.ListOfLanguages, _pureCloud.ListOfSkills, _pureCloud.ListOfUsers, _pureCloud.ListOfWrapUpCodes, _pureCloud.ListOfEdgeServers, _pureCloud.ListOfCampaigns, _pureCloud.ListOfContactLists, _pureCloud.ListOfPresences, _pureCloud.ListOfDivisions, _pureCloud.ListOfDataTables, _pureCloud.ListOfGroups, _pureCloud.ListOfRoles);
        }