public MockDAL() { //Fake Pictures FakePictures.Add(new PictureModel()); FakePictures.Add(new PictureModel()); FakePictures.Add(new PictureModel()); FakePictures[0].ID = 1234; FakePictures[0].FileName = "Blume.jpg"; FakePictures[1].ID = 2; FakePictures[2].ID = 3; //Fake Photographers FakePhotographers.Add(new PhotographerModel()); FakePhotographers.Add(new PhotographerModel()); FakePhotographers.Add(new PhotographerModel()); FakePhotographers[0].ID = 1234; FakePhotographers[1].ID = 2; FakePhotographers[2].ID = 3; //Fake Cameras FakeCameras.Add(new CameraModel()); FakeCameras.Add(new CameraModel()); FakeCameras.Add(new CameraModel()); FakeCameras[0].ID = 1234; FakeCameras[1].ID = 2; FakeCameras[2].ID = 3; //Fake EXIF EXIFModel exmdl = new EXIFModel(); exmdl.ExposureProgram = ExposurePrograms.Manual; exmdl.ExposureTime = 1000; exmdl.Flash = false; exmdl.FNumber = 10; exmdl.ISOValue = 200; exmdl.Make = "Blubb"; FakePictures[1].FileName = "Img1.jpg"; FakePictures[1].EXIF = exmdl; }
public void Save(IPictureModel picture) { FakePictures.Add(picture); FakePictures.Last().ID = FakePictures[FakePictures.Count - 2].ID + 1; }