public BattleshipsControllerTests(BattleshipsControllerTestsFixture fixture) { mockBattleshipsService = fixture.MockBattleshipsService; battleshipsController = fixture.BattleshipsController; }
public BattleshipsControllerTestsFixture() { MockBattleshipsService = new Mock <IBattleshipsService>(); BattleshipsController = new BattleshipsController(MockBattleshipsService.Object); }