public async Task SendBufferedDataNull() { var client = Substitute.For <IBusQueueClient>(); var q = new BusMessageSender(client); await q.SendBuffered(null, DateTime.UtcNow); }
public async Task SendBuffered() { var client = Substitute.For<IBusQueueClient>(); client.Send(Arg.Any<BrokeredMessage>()); var q = new BusMessageSender(Guid.NewGuid().ToString(), client); await q.SendBuffered(new object(), DateTime.UtcNow); client.Received().Send(Arg.Any<BrokeredMessage>()); }