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; }
public OMDBController( IOMDBService omdbService) { _omdbService = omdbService; }
public OMDBServiceTests() { var testData = new MockSetup(); _omdbService = new OMDBService(new OMDBRepository()); }
public PostService(IPostRepository postRepository, IOMDBService omdbService) { this.postRepository = postRepository; this.omdbService = omdbService; }