public void CheckoutCreate() { MockUserResource userResource = new MockUserResource(); IUserService userService = new UserService(userResource); userService.CheckoutCreate(1, 1); Assert.AreEqual(userResource.CheckedOutUserID, 1); }
public bool Checkout(string userid) { try { UserService userService = new UserService(); return userService.CheckoutCreate(int.Parse(userid),0); } catch (Exception e) { Logging.WriteToEventLog("USER Checkout " + e.Message); return false; } }
public void CheckoutCreateDB() { IUserService userService = new UserService(); userService.CheckoutCreate(1, 0); userService.CheckoutCreate(2, 0); }