Example #1
0
        public void TestCheckPlate(string text, string extracted, bool isValid, PlateTypes plateType)
        {
            // Arrange
            checkPlate = new CheckPlate();

            // Act
            var result = checkPlate.ExtractAndCheckPlate(text);

            // Arrange
            result.FullPlate.ShouldBe(extracted);
            result.IsValid.ShouldBe(isValid);
            result.PlateType.ShouldBe(plateType);
        }
 /// <summary>
 /// Base ctor
 /// </summary>
 /// <param name="plate"></param>
 /// <param name="isValid"></param>
 /// <param name="plateType"></param>
 public Plate(string plate, bool isValid, PlateTypes plateType)
 {
     FullPlate = plate;
     IsValid   = isValid;
     PlateType = plateType;
 }