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); }
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); }
public bool AddTask(GuessesTheImageToAdd task) { return(service.Add(task)); }