public void TestCreateFridge() { try { using (IDal dal = new Dal()) { User user = dal.getUser(1); Assert.IsNotNull(user); int id = dal.createFridge("TESTGB", user); Assert.IsNotNull(id); Fridge fridge = dal.getFridge(id); Assert.IsNotNull(fridge); } } catch (Exception ex) { throw new Exception(ex.Message); } }
public void TestGetFridgeUser() { try { using (IDal dal = new Dal()) { User user = dal.getUser(1); Assert.IsNotNull(user); List<Fridge> fridges = dal.getFridgeUser(user); Assert.IsNotNull(fridges); } } catch (Exception ex) { throw new Exception(ex.Message); } }