コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="StarshipService"/> class.
 /// </summary>
 /// <param name="starshipGateway">The starship gateway.</param>
 public StarshipService(IStarshipGateway starshipGateway)
 {
     this.starshipGateway = starshipGateway;
 }
コード例 #2
0
 public StarshipServiceTests()
 {
     fixture         = new Fixture();
     starshipGateway = Substitute.For <IStarshipGateway>();
     starshipService = new StarshipService(starshipGateway);
 }