Scientist compares control and candidate values using ==. To override this behavior, use Compare to define how to compare observed values instead:
==
Compare
public IUser GetCurrentUser(string hash) { return Scientist.Science<IUser>("get-current-user", experiment => { experiment.Compare((x, y) => x.Name == y.Name); experiment.Use(() => LookupUser(hash)); experiment.Try(() => RetrieveUser(hash)); }); }
There was an error while loading. Please reload this page.
Sometimes scientists just gotta do weird stuff. We understand.