public void ValidateInput_Zero_Invalid() { var pnrs = Utilities.RandomCprNumbers(0); var facade = new GetUuidArrayFacadeMethodInfo(pnrs, "", ""); var ret = facade.ValidateInput(); Assert.AreNotEqual("200", ret.StatusKode); Assert.AreNotEqual("OK", ret.FejlbeskedTekst); }
public void ValidateInput_Correct_OK([Values(1, 10, 1000)] int count) { var pnrs = Utilities.RandomCprNumbers(count); var facade = new GetUuidArrayFacadeMethodInfo(pnrs, "", ""); var ret = facade.ValidateInput(); Assert.AreEqual("200", ret.StatusKode); Assert.AreEqual("OK", ret.FejlbeskedTekst); }
public void ValidateInput_OneNull_Invalid([Random(0, 10, 3)] int nullIndex) { var pnrs = Utilities.RandomCprNumbers(10); pnrs[nullIndex] = null; var facade = new GetUuidArrayFacadeMethodInfo(pnrs, "", ""); var ret = facade.ValidateInput(); Assert.AreNotEqual("200", ret.StatusKode); Assert.AreNotEqual("OK", ret.FejlbeskedTekst); }
public static GetUuidArrayOutputType GetUuidArray(string userToken, string appToken, string[] cprNumberArray) { var facadeMethod = new GetUuidArrayFacadeMethodInfo(cprNumberArray, appToken, userToken); return(GetBatchMethodOutput <IPartPersonMappingDataProvider, GetUuidArrayOutputType, string, string>(facadeMethod)); }