public void GuessesTheImageServiceTest_Add_valid()
        {
            var model = new GuessesTheImageToAdd
            {
                Id    = 0,
                Image = new Image
                {
                    Data = "asdfasdfsafasf",
                    Name = "asdf.jpg"
                },
                WordId = 1
            };
            var expected = rep.Add(model);
            var actual   = service.Add(model);

            Assert.AreEqual(expected, actual);
        }
예제 #2
0
        public void GuessesTheImageControllerTest_Add()
        {
            var model = new GuessesTheImageToAdd
            {
                Id    = 0,
                Image = new Image
                {
                    Data = "asdfasdfsafasf",
                    Name = "asdf.jpg"
                },
                WordId = 1
            };
            var expected = service.Add(model);
            var actual   = controller.AddTask(model);

            Assert.AreEqual(expected, actual);
        }
예제 #3
0
 public bool AddTask(GuessesTheImageToAdd task)
 {
     return(service.Add(task));
 }