public SetBaselOecdCodeForNotificationHandlerTests() { context = new TestIwsContext(new TestUserContext(Guid.Empty)); handler = new SetBaselOecdCodeForNotificationHandler(context); codes = new List<WasteCodeInfo>(); context.NotificationApplications.Add(new TestableNotificationApplication { Id = NotificationId, WasteCodes = codes, UserId = Guid.Empty }); context.WasteCodes.AddRange(wasteCodes); }
public SetBaselOecdCodeForNotificationHandlerTests() { context = new TestIwsContext(new TestUserContext(Guid.Empty)); handler = new SetBaselOecdCodeForNotificationHandler(context); codes = new List <WasteCodeInfo>(); context.NotificationApplications.Add(new TestableNotificationApplication { Id = NotificationId, WasteCodes = codes, UserId = Guid.Empty }); context.WasteCodes.AddRange(wasteCodes); }