private void VerifyIsStub(ICollectionOfServices objectToCheck)
        {
            IDisposable whatever = mocks.StrictMock <IDisposable>();

            objectToCheck.SomethingToDispose = whatever;

            Assert.AreSame(objectToCheck.SomethingToDispose, whatever, "stub has properties that behave like properties");
        }
 public ComponentBeingConfigured(IReallyCoolService reallyCoolService, ICollectionOfServices services)
 {
     ReallyCoolService = reallyCoolService;
     Services = services;
 }
 internal ComponentBeingConfiguredWithInternalCtor(IReallyCoolService reallyCoolService, ICollectionOfServices services)
 {
     ReallyCoolService = reallyCoolService;
     Services = services;
 }
 private ComponentBeingConfiguredWithPrivateCtor(IReallyCoolService reallyCoolService, ICollectionOfServices services)
 {
     ReallyCoolService = reallyCoolService;
     Services = services;
 }
예제 #5
0
 internal InternalComponentBeingConfigured(IReallyCoolService reallyCoolService, ICollectionOfServices services)
 {
     ReallyCoolService = reallyCoolService;
     Services          = services;
 }
예제 #6
0
 private ComponentBeingConfiguredWithPrivateCtor(IReallyCoolService reallyCoolService, ICollectionOfServices services)
 {
     ReallyCoolService = reallyCoolService;
     Services          = services;
 }