Beispiel #1
0
        public void Validate_The_Request(int periodOfTimeInDays, int bigScreens, int smallScreens, bool city, bool isValid)
        {
            var validator = new GetIntelligentBillboardValidator();
            var request   = new GetIntelligentBillboardRequest(periodOfTimeInDays, bigScreens, smallScreens, city);

            var result = validator.Validate(request);

            result.IsValid.Should().Be(isValid);
        }
Beispiel #2
0
        public void Validate_The_Request(int timePeriod, int bigRooms, int smallRooms, bool valid)
        {
            var validator = new GetIntelligentBillboardValidator();
            var request   = new GetIntelligentBillboardRequest(timePeriod, bigRooms, smallRooms, "anyCity");

            var result = validator.Validate(request);

            result.IsValid.Should().Be(valid);
        }