예제 #1
0
        public void TestCreateMatch()
        {
            var controller = new BetManagement.Controllers.ServiceController(service);
            var request    = new BetManagement.Models.Match
            {
                ID          = 1,
                TeamA       = "Olympiacos",
                TeamB       = "Arsenal",
                Sport       = "Football",
                Description = "Olympiacos - Arsenal"
            };

            IAsyncResult result = controller.CreateMatch(request);

            Assert.NotNull(result);
        }
예제 #2
0
        public void TestCreateMatch()
        {
            //public IServices service;
            //var service = new Mock<IServices>();
            var controller = new BetManagement.Controllers.ServiceController(service);
            var request    = new BetManagement.Models.Match
            {
                ID          = 1,
                TeamA       = "Olympiacos",
                TeamB       = "Arsenal",
                Sport       = "Football",
                Description = "Olympiacos - Arsenal",
                MatchDate   = "123"
                              //MatchTime = null
            };

            var result = controller.CreateMatch(request);

            Assert.NotNull(result);
        }