Beispiel #1
0
        public void RuleServiceTest_AddImages_valid()
        {
            var expected = new List <string> {
                "Can not be written"
            };
            var actual = service.AddImages(new Image[] { new Image {
                                                             Data = "asdfadsf", Name = "asdf.jpg"
                                                         } });

            Assert.AreEqual(expected.ElementAt(0), actual.ElementAt(0));
        }
        public void RuleControllerTest_AddImages()
        {
            var expected = service.AddImages(new Image[] { });
            var actual   = controller.AddImages(new Image[] { });

            Assert.AreEqual(expected.ElementAt(0), actual.ElementAt(0));
        }
Beispiel #3
0
 public List <string> AddImages(Image[] images)
 {
     return(service.AddImages(images));
 }