public void CanSetCustomsCode() { var customsCode = WasteCodeInfo.CreateWasteCodeInfo(GetTestWasteCode(new Guid("E1B62673-35C2-4120-87C4-F6986C8C1E2F"), CodeType.CustomsCode)); notification.SetCustomsCode(customsCode); Assert.NotNull(notification.CustomsCode); }
private static void SetWasteCodes(NotificationApplication notification, IList <WasteCode> wasteCodes) { notification.SetEwcCodes(new[] { WasteCodeInfo.CreateWasteCodeInfo(wasteCodes.First(wc => wc.CodeType == CodeType.Ewc)) }); notification.SetHCodes(new[] { WasteCodeInfo.CreateWasteCodeInfo(wasteCodes.First(wc => wc.CodeType == CodeType.H)) }); notification.SetYCodes(new[] { WasteCodeInfo.CreateWasteCodeInfo(wasteCodes.First(wc => wc.CodeType == CodeType.Y)) }); notification.SetUnClasses(new[] { WasteCodeInfo.CreateWasteCodeInfo(wasteCodes.First(wc => wc.CodeType == CodeType.Un)) }); notification.SetUnNumbers(new[] { WasteCodeInfo.CreateWasteCodeInfo(wasteCodes.First(wc => wc.CodeType == CodeType.UnNumber)) }); notification.SetCustomsCode( WasteCodeInfo.CreateCustomWasteCodeInfo(CodeType.CustomsCode, "olives")); notification.SetImportCode( WasteCodeInfo.CreateCustomWasteCodeInfo(CodeType.ImportCode, "cardboard boxes")); notification.SetExportCode( WasteCodeInfo.CreateCustomWasteCodeInfo(CodeType.ExportCode, "gravel")); }