예제 #1
0
        protected virtual void Dispose(bool disposing)
        {
            if (_isDisposed)
            {
                return;
            }

            if (disposing)
            {
                _omdbService = null;
            }

            if (_nativeResource != IntPtr.Zero)
            {
                Marshal.FreeHGlobal(_nativeResource);
                _nativeResource = IntPtr.Zero;
            }

            _isDisposed = true;
        }
예제 #2
0
 public OMDBController(
     IOMDBService omdbService)
 {
     _omdbService = omdbService;
 }
예제 #3
0
        public OMDBServiceTests()
        {
            var testData = new MockSetup();

            _omdbService = new OMDBService(new OMDBRepository());
        }
 public PostService(IPostRepository postRepository, IOMDBService omdbService)
 {
     this.postRepository = postRepository;
     this.omdbService    = omdbService;
 }