public void throw_exception_if_item_not_found()
        {
            var cmd = new RemoveSoulbindingOnItem {
                ItemId = 12345
            };

            Assert.That(() => Repository.Execute(cmd),
                        Throws.TypeOf <DomainException>().With.Message.EqualTo("Item with Id '12345' could not be found."));
        }
        public void should_remove_soulbinding()
        {
            var cmd = new RemoveSoulbindingOnItem {
                ItemId = soulboundItem.Id
            };

            Assert.That(() => Repository.Execute(cmd), Throws.Nothing);

            var itemLoaded = DataContext.AsQueryable <Item>().FirstOrDefault(p => p.Id == soulboundItem.Id);

            Assert.That(itemLoaded, Is.Not.Null);
            Assert.That(itemLoaded.SoulboundToPlayer, Is.Null);
            Assert.That(itemLoaded.ConsentsToSoulbinding, Is.False);
        }