Beispiel #1
0
        public void throw_exception_if_runeSource_not_found()
        {
            var cmd = new GiveRune {
                PlayerId = owner.Id, ItemSourceId = 555
            };

            Assert.That(() => Repository.Execute(cmd),
                        Throws.TypeOf <DomainException>().With.Message.EqualTo("ItemSource with ID '555' could not be found"));
        }
Beispiel #2
0
        public void throw_exception_if_itemSourceId_not_provided()
        {
            var cmd = new GiveRune {
                PlayerId = owner.Id
            };

            Assert.That(() => Repository.Execute(cmd),
                        Throws.TypeOf <DomainException>().With.Message.EqualTo("ItemId is required!"));
        }