Example #1
0
      public void CreateController()
      {
         var storage = new List<BinaryRepository.Data>();
         var binaries = new BinaryRepository(storage);
         var images = new ImageRepository();

         _controller = new AdminController(images, binaries);
      }
Example #2
0
      public void ConstructController()
      {
         _binaryStorage = new List<BinaryRepository.Data>();
         _binaryRepository = new BinaryRepository(_binaryStorage);
         _imageRepository = new ImageRepository();
         _queue = new MessageQueue();



         _controller = new UploadController(_imageRepository, _binaryRepository, _queue, MockRepository.GenerateMock<FileUploaderAdapter>());
      }
Example #3
0
      public void ConstructController()
      {
         var storage = new List<BinaryRepository.Data>();
         var binaries = new BinaryRepository(storage);
         var images = new ImageRepository();
         _messageQueue = new MessageQueue();

         _mocks = new MockRepository();

         _controller = new UploadController(images, binaries, _messageQueue, _mocks.CreateMock<FileUploaderAdapter>());
      }