public DevPunisher(IMissileLauncherService missileService, IBuildFetcherService buildService) { this.buildService = buildService; this.missileService = missileService; currentBuildState = GetCurrentBuild(); }
// TODO: is it possible to ctor inject the service?, maybe summat else? public Build With(IMissileLauncherService missileService) { this.missileLauncher = missileService; return this; }
public BuildContext(Build origionalBuild,IMissileLauncherService missileService) { this.origionalBuild = origionalBuild; this.missileService = missileService; }
private void MockTheServices() { missileService = MockRepository.GenerateMock<IMissileLauncherService>(); buildService = MockRepository.GenerateMock<IBuildFetcherService>(); }