public async Task QueryUserThatDoesNotExists() { var queryHandler = new ApplicationUserQueryHandler(Context); var user = await queryHandler.Handle(new ApplicationUserQuery { UserName = "******" }); Assert.Null(user); }
public async Task QueryUserThatDoesNotExists() { var queryHandler = new ApplicationUserQueryHandler(Context); var user = await queryHandler.Handle(new ApplicationUserQuery { UserName = "******" }); Assert.Null(user); }
public async Task QueryUserThatExists() { var queryHandler = new ApplicationUserQueryHandler(Context); var user = await queryHandler.Handle(new ApplicationUserQuery { UserName = "******" }); Assert.NotNull(user); Assert.Equal("*****@*****.**", user.UserName); }
public async Task QueryUserThatExists() { var queryHandler = new ApplicationUserQueryHandler(Context); var user = await queryHandler.Handle(new ApplicationUserQuery { UserName = "******" }); Assert.NotNull(user); Assert.Equal("*****@*****.**", user.UserName); }