Rx Challenge – Solution

2015/01/31

last week I was publishing the first RX Challenge. today I post solution for the first challenge.   the last week challenge was to set RX's Buffer that triggered by count, time or manual flushing. the following code present the solution public void Buffer_ShouldBulkOn_CountTimeoutOrFlush_Test() { // produce a buffer that should produce its bulk // as result of one of the following trigger // timeout, count threshold or manual flush request // arrange ISubject<int> source = new Subject<int>(); TimeSpan timeout...
2 comments

Rx Challenge

2015/01/27

if you consider yourself RX pro, this challenge is for you. I decided to initiate weekly RX challenge and I let you  one week to solve it before I will publish solution. I will post it in a form of MS Test  method. and I will also post it on http://stackoverflow.com/questions/28176932/rx-challenge-1-by-bnaya-eshet on this challenge you have to make the following test pass by making buffer that triggered on timeout, count or flush request public void Buffer_ShouldBulkOn_CountTimeoutOrFlush_Test() { // produce a buffer that should produce its bulk // as result of one of...
2 comments