예제 #1
0
        public void DeletePhotographer()
        {
            MockDAL mock = new MockDAL();

            mock.InsertAllPictures();
            mock.InsertAllEXIFData();
            mock.InsertAllIPTCData();
            mock.AddAndReturnPhotographer("John", "Wayne", "03.04.1981", "");
            mock.AddAndReturnPhotographer("Bruce", "Wayne", "03.04.1981", "");
            mock.AddAndReturnPhotographer("Homer", "Simpson", "03.04.1981", "");
            mock.AddAndReturnPhotographer("Peter", "Griffin", "03.04.1981", "");

            mock.DeletePhotographer("Homer", "Simpson");

            Assert.That(mock.PhotographerList.Count, Is.EqualTo(3));
        }