public void ValidateInput_NullUuidArray_Fails()
        {
            var facade = new ListFacadeMethodInfo(new ListInputType(), CprBroker.Schemas.SourceUsageOrder.LocalThenExternal, "", "");
            var result = facade.ValidateInput();

            Assert.AreEqual("400", result.StatusKode);
        }
        public void ValidateInput_RandomValidUuids_EmptyStatusText(
            [Values(10, 20, 200)] int count)
        {
            var facade = new ListFacadeMethodInfo(new ListInputType()
            {
                UUID = Utilities.RandomGuidStrings(count)
            }, CprBroker.Schemas.SourceUsageOrder.LocalThenExternal, "", "");
            var result = facade.ValidateInput();

            Assert.AreEqual("OK", result.FejlbeskedTekst);
        }
        public void ValidateInput_MixedValidAndInvalidUuids_Fails(
            [ValueSource(typeof(Utilities), "RandomGuids5")] string validUuid,
            [Values(null, "", "kalskldjas", "2610802222", "Data kljaslkj")] string inValidUuid)
        {
            var facade = new ListFacadeMethodInfo(new ListInputType()
            {
                UUID = new string[] { validUuid, inValidUuid }
            }, CprBroker.Schemas.SourceUsageOrder.LocalThenExternal, "", "");
            var result = facade.ValidateInput();

            Assert.AreEqual("400", result.StatusKode);
        }
        public void ValidateInput_MixedValidAndInvalidUuids_FailedUuidInStatusText(
            [ValueSource(typeof(Utilities), "RandomGuids5")] string validUuid,
            [Values("kalskldjas", "2610802222", "Data kljaslkj")] string inValidUuid)
        {
            var facade = new ListFacadeMethodInfo(new ListInputType()
            {
                UUID = new string[] { validUuid, inValidUuid }
            }, CprBroker.Schemas.SourceUsageOrder.LocalThenExternal, "", "");
            var result = facade.ValidateInput();

            StringAssert.Contains(inValidUuid, result.FejlbeskedTekst);
        }