Exemple #1
0
        public void Test_CreateIPortfolio_Simple()
        {
            // Dodaje se par portfelja i provjerava postoje li na burzi

            string portfelj1 = "portfelj1";

            _stockExchange.CreatePortfolio(portfelj1);
            string portfelj2 = "portfelj2";

            _stockExchange.CreatePortfolio(portfelj2);

            Assert.True(_stockExchange.PortfolioExists(portfelj1));
            Assert.True(_stockExchange.PortfolioExists(portfelj2));
            Assert.AreEqual(2, _stockExchange.NumberOfPortfolios());
        }