Example #1
0
        public void Constructor_Always_CreatesNotification()
        {
            var isPrivate        = FixtureUtils.Bool();
            var integrationEvent = Fixtures.Pipelines.FakeCreatedIntegrationEvent();
            var signal           = Fixtures.Pipelines.FakeQueryModelCreatedSignal <int>(integrationEvent);

            var notification = new QueryModelChangedNotification(signal)
            {
                IsPrivate = isPrivate
            };

            notification.Signal.Should().BeEquivalentTo(signal);
            notification.IsPrivate.Should().Be(isPrivate);
        }