public void CanMockInternalInterface()
        {
            IInternal mock = MockRepository.Mock <IInternal>();

            mock.Expect(x => x.Foo());

            mock.Foo();
            mock.VerifyExpectations();
        }
Exemple #2
0
        public void CanMockInternalInterface()
        {
            IInternal mock = MockRepository.Mock <IInternal>();

            mock.SetUnexpectedBehavior(UnexpectedCallBehaviors.BaseOrDefault);
            mock.Expect(x => x.Foo());

            mock.Foo();
            mock.VerifyExpectations();
        }
        public void CanMockInternalInterface()
        {
            MockRepository mocks = new MockRepository();
            IInternal      mock  = mocks.StrictMock <IInternal>();

            mock.Foo();
            mocks.ReplayAll();
            mock.Foo();
            mocks.VerifyAll();
        }
Exemple #4
0
 public HomeController(IUser iuser, ITraining itraining,
                       IPdfSharpService pdfService, IMentor mentor,
                       IInternal iinternal, IAllocation allocation,
                       IAspiration aspiration, ILog log,
                       IMigraDocService migraDocService)
 {
     _IUser           = iuser;
     _ITraining       = itraining;
     _pdfService      = pdfService;
     _IMentor         = mentor;
     _IInternal       = iinternal;
     _IAllocation     = allocation;
     _IAspiration     = aspiration;
     _ILog            = log;
     _migraDocService = migraDocService;
 }
Exemple #5
0
 public InternalController(IInternal iinternal, IUser iuser)
 {
     _IInternal = iinternal;
     _IUser     = iuser;
 }
Exemple #6
0
 public static IInternal <T> GetInternals <T>(this IInternal <T> obj) => obj;
Exemple #7
0
 public static IInternal <T1, T2> GetInternals2 <T1, T2>(this IInternal <T1, T2> obj) => obj;
Exemple #8
0
 public External(IInternal someDependency)
 {
 }