public void GetViewIntegrationTest()
        {
            var target = new MingleServer("http://localhost:8080", "mingleuser", "secret").GetProject("apitest");
            var actual = target.GetView("Sprint List");

            Assert.AreEqual(25, actual.Count);
        }
        public void GetProjectListIntegrationTest()
        {
            var          hostUrl   = Environment.GetEnvironmentVariable("MINGLETARGET");
            const string loginName = "mingleuser";
            const string password  = "******";
            var          target    = new MingleServer(hostUrl, loginName, password);
            const int    expected  = 2;
            var          actual    = target.GetProjectList();

            Assert.AreEqual(expected, actual.Count);
        }
        public void TestTypeInFilter()
        {
            const string host    = @"http://localhost:8080";
            const string user    = "******";
            const string pw      = "secret";
            var          filters = new Collection <string> {
                new MingleFilter("Type", "Is", "Main Business Requirement").FilterFormatString
            };

            filters.Add(new MingleFilter("Type", "Is", "Business Use Case").FilterFormatString);
            filters.Add(new MingleFilter("Type", "Is", "Planning Card").FilterFormatString);
            var project = new MingleServer(host, user, pw).GetProject("bss_portfolio_sandbox");

            Assert.AreEqual(314, project.GetCards(filters).Count);
        }
 /// <summary>
 /// Mocked ViewModel implementing IViewModel
 /// </summary>
 /// <param name="filename">Name of test data file to be passed to Mocks.MingleServer</param>
 public MockViewModel(string filename)
 {
     if (!new FileInfo(filename).Exists) throw new Exception(filename + " is not found");
     _mingle = new MingleServer(filename);
     _model = new ViewModel(_mingle);
 }
Example #5
0
 public static void MyClassInitialize(TestContext testContext)
 {
     _mingle  = new MingleServer(MingleHost, MINGLEUSER, MINGLEPASSWORD);
     _project = _mingle.GetProject("apitest");
 }