Esempio n. 1
0
 public void Setup()
 {
     _command = new UpdateModuleTypeDetails
     {
         Id          = Guid.NewGuid(),
         Name        = "Name",
         Title       = "Title",
         Description = "Description"
     };
     _validatorMock = new Mock <IValidator <UpdateModuleTypeDetails> >();
     _validatorMock.Setup(x => x.Validate(_command)).Returns(new ValidationResult());
     _moduleType = new ModuleType();
     _moduleType.UpdateDetails(_command, _validatorMock.Object);
     _event = _moduleType.Events.OfType <ModuleTypeDetailsUpdated>().SingleOrDefault();
 }