public void SuccessLoginAdmin() { UserService.Service.Implementation.UserService userService = SetupRepositoryAndService(); UserAccount userAccount = userService.GetByEmailAndPassword("*****@*****.**", "milanmilic965"); Assert.False(userAccount is null); }
public void SuccessLoginPatient() { UserService.Service.Implementation.UserService userService = SetupRepositoryAndService(); UserAccount userAccount = userService.GetByEmailAndPassword("*****@*****.**", "11111111"); Assert.False(userAccount is null); }
public void NotSuccessLogin() { UserService.Service.Implementation.UserService userService = SetupRepositoryAndService(); try { UserAccount userAccount = userService.GetByEmailAndPassword("bla bla", "bla"); } catch (Exception ex) { Assert.True(ex is NotFoundException); } }