Esempio n. 1
0
        public void AddRequestNull()
        {
            string ProjectName = "Test";
            var    service = new Service1();
            bool   expected = true; Service1.Request req = new Service1.Request

            {
                ProjectName = "Test"
            };
            service.AddRequest(req);
            Assert.AreEqual(expected, service.MoreThanNull);
        }
Esempio n. 2
0
        public void AddRequestTest()
        {
            var service         = new Service1();
            var RequestCountPre = service.SelectRequest().Count;

            Service1.Request Request = new Service1.Request
            {
                ProjectName    = "stest",
                Competition_ID = 3
            };
            service.AddRequest(Request);
            var RequestCountPost = service.SelectRequest().Count;

            Assert.AreEqual(RequestCountPre + 1, RequestCountPost);
        }