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);
        }
Example #2
0
        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);
        }