Example #1
0
 public void Init()
 {
     var fileName = @"..\..\TestFiles\Run For The Next Generation 2011 001.JPG";
     fakeDataSource =   new FakeDataSource();
     target = new PhotosController(fakeDataSource, provider);
     target.ControllerContext = new FakeControllerContext();
     target.ControllerContext.Request = SetupContent(fileName);
     target.context = new  FakeHttpContext();
 }
Example #2
0
        public void Init()
        {
            var fileName = @"..\..\TestFiles\Run For The Next Generation 2011 001.JPG";

            fakeDataSource                   = new FakeDataSource();
            target                           = new PhotosController(fakeDataSource, provider);
            target.ControllerContext         = new FakeControllerContext();
            target.ControllerContext.Request = SetupContent(fileName);
            target.context                   = new  FakeHttpContext();
        }
Example #3
0
 public void Init()
 {
     fakeDataSource = new FakeDataSource();
     var photoRecordList = ObjectMother.ReturnPhotoDataRecord(3);
     foreach (var photo in photoRecordList)
     {
         fakeDataSource.Photos.Add(photo);
     }
     fakeDataSource.SaveChanges();
     target = new PhotosController(fakeDataSource, provider);
 }
Example #4
0
        public void Init()
        {
            fakeDataSource = new FakeDataSource();
            var photoRecordList = ObjectMother.ReturnPhotoDataRecord(3);

            foreach (var photo in photoRecordList)
            {
                fakeDataSource.Photos.Add(photo);
            }
            fakeDataSource.SaveChanges();
            target = new PhotosController(fakeDataSource, provider);
        }
Example #5
0
 public ValuesController(IPhotoDataSource Db)
 {
     _db = Db;
 }
Example #6
0
 public PhotosController(IPhotoDataSource Db, IStorageProvider storageProvider)
 {
     _db      = Db;
     _storage = storageProvider;
     Trace.TraceInformation("Created PhotosController with {0}", storageProvider.GetType().ToString());
 }
Example #7
0
 public PhotosController(IPhotoDataSource Db, IStorageProvider storageProvider)
 {
     _db = Db;
     _storage = storageProvider;
     Trace.TraceInformation("Created PhotosController with {0}", storageProvider.GetType().ToString());
 }
Example #8
0
 public ValuesController(IPhotoDataSource Db)
 {
     _db = Db;
 }