示例#1
0
        public void ShouldDoNothing()
        {
            var card = new CardBuilder()
                       .WithDefaultValues()
                       .Build();

            Assert.True(card != null); // yes, this basically does nothing, but this is just a placeholder
        }
示例#2
0
        public void RaisesCardCreatedEvent()
        {
            var card = new CardBuilder()
                       .WithDefaultValues()
                       .Build();

            Assert.Single(card.Events);
            Assert.IsType <CardCreatedEvent>(card.Events.First());
        }
        public async Task ShouldTriggerNotificationOnce()
        {
            var card = new CardBuilder()
                       .WithDefaultValues()
                       .Build();

            await _handler.Handle(new CardCreatedEvent(card));

            _notificationMock.Verify(sender => sender.Send(card), Times.Once);
        }