Example #1
0
        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;
 }
Example #3
0
 public BuildContext(Build origionalBuild,IMissileLauncherService missileService)
 {
     this.origionalBuild = origionalBuild;
     this.missileService = missileService;
 }
 private void MockTheServices()
 {
     missileService = MockRepository.GenerateMock<IMissileLauncherService>();
     buildService = MockRepository.GenerateMock<IBuildFetcherService>();
 }