コード例 #1
0
        public override void Observe()
        {
            _repo.Setup(x => x.Get(It.IsAny<Guid>())).Returns(IndustryMother.Finance);
            _renameHandler = new RenameIndustryHandler(_repo.Object);

            var renameCommand = new RenameIndustry(Guid.NewGuid(), "Test Industry 2", false);
            _renameHandler.Handle(renameCommand);
        }
 public override void Observe()
 {
     var renameCommand = new RenameIndustry(Guid.NewGuid(), "Test Industry 2", false);
     _renameHandler = new RenameIndustryHandler(_repo.Object);
     _exception = Assert.Throws<ArgumentNullException>(() => _renameHandler.Handle(renameCommand));
 }