コード例 #1
0
        public void SetUp()
        {
            var fakePlugInsWithNSubtitute = Substitute.For <IPlugIns>();
            var fakePlugInsWithRhinoMock  = MockRepository.GenerateMock <IPlugIns>();

            _createPlugIns = new CreatePlugIns(fakePlugInsWithNSubtitute, fakePlugInsWithRhinoMock);
        }
コード例 #2
0
        public MainClassForTest()
        {
            var serviceLocator = new ServiceLocator();

            _createPlugIns = serviceLocator.GetServiceLocator().Resolve <CreatePlugIns>();
        }