public Rover(ISpaceAgency nasa, ICamera camera) { _nasa = nasa; Camera = camera; Name = Guid.NewGuid().ToString(); Photos = new Dictionary <string, Bitmap> (); Location = new Location { X = 0, Y = 0 }; }
public RoverBuilder() { _spaceAgency = new Mock <ISpaceAgency> ().Object; _camera = new Mock <ICamera> ().Object; }
internal RoverBuilder WithSpaceAgency(ISpaceAgency spaceAgency) { _spaceAgency = spaceAgency; return(this); }
public App(ISpaceAgency spaceAgency) { _spaceAgency = spaceAgency; }