public void StopCallsOnStop () { var s = new ServiceFoo (); Assert.AreEqual (0, s.ExitCode); s.Stop (); Assert.AreEqual (SOME_ERROR_CODE, s.ExitCode); }
public EnrollmentCommandHandler2(StudentRepository studentRepository, ClassRepository classRepository, StudentArchiveRepository studentArchiveRepository, UnitOfWork unitOfWork, EnrollementNotificationService notificationService, ILogger logger, AuthorizationService authorizationService, CalendarService calendarService, ServiceFoo serviceFoo, ServiceBlah serviceBlah, FactoryFoo facoFactoryFoo, FactoryBlah factoryBlah ) { _studentRepository = studentRepository; _classRepository = classRepository; _studentArchiveRepository = studentArchiveRepository; _unitOfWork = unitOfWork; _notificationService = notificationService; _logger = logger; _authorizationService = authorizationService; _calendarService = calendarService; _serviceFoo = serviceFoo; _serviceBlah = serviceBlah; _facoFactoryFoo = facoFactoryFoo; _factoryBlah = factoryBlah; }
public void StopCallsOnStop() { var s = new ServiceFoo(); Assert.AreEqual(0, s.ExitCode); s.Stop(); Assert.AreEqual(SOME_ERROR_CODE, s.ExitCode); }
public void ExitCodeIsNotResetByBaseClassServiceBaseBetweenRuns () { var s = new ServiceFoo (); Assert.AreEqual (0, s.ExitCode); s.Stop (); Assert.AreEqual (SOME_ERROR_CODE, s.ExitCode); s.StartHook (); Assert.AreEqual (SOME_ERROR_CODE, s.ExitCode); }
public void ExitCodeIsNotResetByBaseClassServiceBaseBetweenRuns() { var s = new ServiceFoo(); Assert.AreEqual(0, s.ExitCode); s.Stop(); Assert.AreEqual(SOME_ERROR_CODE, s.ExitCode); s.StartHook(); Assert.AreEqual(SOME_ERROR_CODE, s.ExitCode); }
public Root(ServiceFoo foo, ServiceBar bar) { Foo = foo; Bar = bar; }
public ServiceBar(ServiceFoo foo) { Foo = foo; }