Closed tjaskula closed 4 years ago
I'm able to reproduce the bug with this simple test:
[Fact]
public void TestAndThenToWithComplexTypes()
{
var completes = new BasicCompletes<IUser>(new Scheduler());
completes
.AndThenTo(user => user.WithName("Tomasz"))
.OtherwiseConsume(noUser => completes.With(new UserState(string.Empty, string.Empty, string.Empty)))
.AndThenConsume(userState => {
completes.With(userState);
});
var completed = completes.Await<UserState>();
Assert.Equal("Tomasz", completed.Name);
}
Resolved by #51
While implementing
Vlingo.Http
this piece of code below has produced cast exception error:And the error produced is as follows: