public ClassWithMixedConstructor(
     Guid id,
     ISomeOtherInterface someDependency
     )
 {
     _someDependency = someDependency ?? throw new ArgumentNullException(nameof(someDependency));
 }
 public void TestInitialize()
 {
     this.subInterface3         = Substitute.For <IInterface3>();
     this.subInterface4         = Substitute.For <IInterface4>();
     this.subSomeInterface      = Substitute.For <ISomeInterface>();
     this.subSomeOtherInterface = Substitute.For <ISomeOtherInterface>();
 }
예제 #3
0
 public void TestInitialize()
 {
     this.stubInterface3         = MockRepository.GenerateStub <IInterface3>();
     this.stubInterface4         = MockRepository.GenerateStub <IInterface4>();
     this.stubSomeInterface      = MockRepository.GenerateStub <ISomeInterface>();
     this.stubSomeOtherInterface = MockRepository.GenerateStub <ISomeOtherInterface>();
 }
 public void TestInitialize()
 {
     this.fakeInterface3         = A.Fake <IInterface3>();
     this.fakeInterface4         = A.Fake <IInterface4>();
     this.fakeSomeInterface      = A.Fake <ISomeInterface>();
     this.fakeSomeOtherInterface = A.Fake <ISomeOtherInterface>();
 }
예제 #5
0
 public void TestInitialize()
 {
     this.mockInterface3         = Mock.Create <IInterface3>();
     this.mockInterface4         = Mock.Create <IInterface4>();
     this.mockSomeInterface      = Mock.Create <ISomeInterface>();
     this.mockSomeOtherInterface = Mock.Create <ISomeOtherInterface>();
 }
예제 #6
0
 public void SetUp()
 {
     _mock1 = MockRepository.GenerateMock<ISomeInterface>();
     _stub1 = MockRepository.GenerateStub<ISomeInterface>();
     _mock2 = MockRepository.GenerateMock<ISomeOtherInterface>();
     _signal1 = new Signal("signal description 1");
     _signal2 = new Signal("signal description 2");
 }
 public void SetUp()
 {
     _mock1 = MockRepository.GenerateMock<ISomeInterface>();
     _stub1 = MockRepository.GenerateStub<ISomeInterface>();
     _mock2 = MockRepository.GenerateMock<ISomeOtherInterface>();
     _signals = new SignalState();
 }
예제 #8
0
 public MixedInjectedClassMultiple(ISomeInterface someInterface, ISomeOtherInterface someOtherInterface)
 {
     this.someInterface      = someInterface;
     this.someOtherInterface = someOtherInterface;
 }
 private void PrivateMethod(ISomeOtherInterface someOtherInterface)
 {
 }
 public TwoDependency(ISomeInterface someInterface, ISomeOtherInterface someOtherInterface)
 {
     SomeInterface      = someInterface;
     SomeOtherInterface = someOtherInterface;
 }
예제 #11
0
 public HomeController(IFooBarService barService, IFooBar2Service bar2Service, ISomeOtherInterface someOtherInterface)
 {
     _barService         = barService;
     _bar2Service        = bar2Service;
     _someOtherInterface = someOtherInterface;
 }
 // If this constructor is missing, then it throws an exception!
 MyClass(string param1, DateTime param2, ISomeOtherInterface someOtherInterface)
 {
 }
예제 #13
0
 public SomeClassWithDependencies(ISomeInterface someInterface, ISomeOtherInterface someOtherInterface)
 {
     _someInterface = someInterface;
     _someOtherInterface = someOtherInterface;
 }
 public HomeController(IFooBarService barService, IFooBar2Service bar2Service, ISomeOtherInterface someOtherInterface)
 {
     _barService = barService;
     _bar2Service = bar2Service;
     _someOtherInterface = someOtherInterface;
 }
 public SomeService(ISomeInterface someInterface, ISomeOtherInterface someOtherInterface)
 {
     this.someInterface      = someInterface;
     this.someOtherInterface = someOtherInterface;
 }
 public ClassWithMethods(ISomeInterface someInterface, ISomeOtherInterface someOtherInterface)
 {
     this.someInterface      = someInterface;
     this.someOtherInterface = someOtherInterface;
 }
 public ConstructorInjectedClassMultiple(ISomeInterface someInterface, ISomeOtherInterface someOtherInterface)
 {
     this.someInterface      = someInterface;
     this.someOtherInterface = someOtherInterface;
 }