protected override void Given() { const int x = 5; const int y = 5; var positionOne = new PositionBuilder() .WithX(x) .WithY(y) .Build(); _positionTwo = new PositionBuilder() .WithX(x + 2) .WithY(y + 2) .Build(); var landingPlatform = new LandingPlatformMockBuilder() .WithIsPositionInsideOfPlatformMocked(IsPositionInsideOfThePlatform) .WithIsAllowedPositionMocked(IsAllowedPosition) .Build(); _sut = new LandingAreaBuilder() .WithLandingPlatform(landingPlatform) .Build(); _sut.CheckPosition(positionOne); _expectedResult = LandingAnswer; _expectedPositions = StoredPositions; }
protected override void Given() { _position = new PositionBuilder().Build(); var landingPlatform = new LandingPlatformMockBuilder() .WithIsPositionInsideOfPlatformMocked(IsPositionInsideOfThePlatform) .Build(); _sut = new LandingAreaBuilder() .WithLandingPlatform(landingPlatform) .Build(); _expectedResult = LandingAnswer; _expectedPositions = StoredPositions; }