コード例 #1
0
        public void Setup()
        {
            var validCommand = new CreateANotificationCommand
            {
                Title   = "New patch 1.623",
                Content = "A new area and some monsters have been added",
                Type    = NotificationType.PatchNotes
            };

            _validationContext = new CreateANotificationValidationContext(validCommand);
        }
コード例 #2
0
 public CreateANotificationValidationContext(CreateANotificationCommand command) => Command = command;