public void Create_User_With_Invalid_Data_Using_Validations_Should_Throw_SqlException(string name, string address) { var userServices = new UserServices.UserServices(); var user = new User() { Name = name, Address = address }; Assert.IsFalse(userServices.Create(user)); }
public void Create_User_Via_Service() { var userServices = new UserServices.UserServices(); var user = new User() { Name = "Rakesh", Address = "Mumbai" }; userServices.Create(user); Assert.IsTrue(user.Id > 0); Assert.Pass(); }
// public Users selectedUsers { get => selectedUsers; set => selectedUsers = value; } public async Task MainViewModels() { var userservice = new UserServices.UserServices(); UserList = await userservice.GetUsersAsync(); }