private void describe_GetAsync() { context["when user registration process is present in repository"] = () => { var presentProcess = UserRegistrationProcessMother.InCreatedState(Guid.NewGuid()); before = () => { _sut.SaveAsync(presentProcess).Wait(); _result = _sut.GetAsync(presentProcess.UserId).Result; }; it["returns not none"] = () => _result.HasValue.should_be_true(); it["returns user registration process with correct UserId"] = () => { _result.ValueOrFailure().UserId.should_be(presentProcess.UserId); }; }; context["when user registration process is not present in repository"] = () => { before = () => _result = _sut.GetAsync(Guid.NewGuid()).Result; it["returns none"] = () => _result.HasValue.should_be_false(); }; }