Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6109623
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:25:32+00:00 2026-05-23T14:25:32+00:00

We are migrating from MOQ to Typemock. In MOQ we’ve a functionality of getting

  • 0

We are migrating from MOQ to Typemock. In MOQ we’ve a functionality of getting a proxy class from the interface, we want to achieve the same from typemock. Actually our requirement is something like this, we are using Ninject IoC/DI pattern in our application and wants to enjoy the benefits of it in unit testing.

We want to use Ninject kernel to register the interface with FakeClass or more appropriately ProxyClass. The syntax is somewhat this

kernel.Bind(interface).to(class)

and we want

kernel.Bind(interface).to(fakeclass)

In MOQ we do this like this

var mock=new Mock(interface)

and mock.Object() method gives us the fake class.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T14:25:32+00:00Added an answer on May 23, 2026 at 2:25 pm

    To create a fake object, use the Isolate.Fake.Instance<T>() method:

    Interface fake = Isolate.Fake.Instance<Interface>();
    

    Then you can just use that fake instance:

    kernel.Bind(interface).to(fake);
    

    This was from this blog entry

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Our team is migrating from VSS 6.0 to TFS 2008 to be used for
We're considering migrating from CruiseControl/CruiseControl.NET to TeamCity. A portion of our product is a
We're migrating from an SVN server inside our office to a hosted service. Currently
Our company is migrating from VSS to SVN as part of an upgrade from
I am getting error below on every action after migrating from JSF 1.2 and
we're trying our hand at migrating from cvs to git. Our goals are 1)
We're in the process of migrating from Mercurial to Git for our workflow and
I am having troubles migrating from OC4J 10.1.2.3 to 10.1.3.1.4. The problem is for
We are migrating from asp classic to .net. Unfortunately they named all of the
I started migrating from cucumber + webrat to cucumber + capybara. Now the behavior

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.