Ejemplo n.º 1
0
        public async Task UserDeletedConsumeMessage()
        {
            UserDeleted userDeleted = new UserDeleted()
            {
                Email    = "*****@*****.**",
                Username = "******",
                Id       = 1
            };

            var sub = new UserDeletedPubSubscriber(bus);
            await sub.Consume(userDeleted, new MessageContext()
            {
                GlobalRequestId = Guid.NewGuid()
            });
        }
Ejemplo n.º 2
0
        public async Task UserDeletedConsumeLocalMessage()
        {
            UserDeleted userDeleted = new UserDeleted()
            {
                Email    = "*****@*****.**",
                Username = "******",
                Id       = 1
            };

            var sub = new UserDeletedPubSubscriber(bus, dataContext);
            await sub.Consume(userDeleted, new MessageContext()
            {
                GlobalRequestId = Guid.NewGuid()
            });
        }