public async Task ReturnTrue_WhenInviteExists() { var handler = new UserHasEventManagerInviteQueryHandler(Context); bool result = await handler.Handle(new UserHasEventManagerInviteQuery { InviteeEmail = "*****@*****.**", EventId = 2 }); result.ShouldBeTrue(); }
public async Task ReturnFalse_WhenInviteDoesNotExist() { var handler = new UserHasEventManagerInviteQueryHandler(Context); bool result = await handler.Handle(new UserHasEventManagerInviteQuery { InviteeEmail = "*****@*****.**", EventId = 2 }); result.ShouldBeFalse(); }