コード例 #1
0
        public void Validate__TicketUniqueId_has_correct_format__Should_be_valid(
            [Values("C56A4180-65AA-42EC-A945-5FD21DEC0538",
                    "04a691a795574f4fba7186ece736c878",
                    "c56a4180-65aa-42ec-a945-5fd21dec0538",
                    "C56a418065aA426ca9455fd21deC0538",
                    "{c56a4180-65aa-42ec-a945-5fd21dec0538}",
                    "{C56a418065aa426ca9455fd21deC0538}")] string id)
        {
            var validTicket = new Ticket {
                TicketUniqueId = id
            };

            _validator.ShouldNotHaveValidationErrorFor(x => x.TicketUniqueId, validTicket);
        }