public void BaseSetUp() { string fridgeName = "lodówa"; string fridgeAddress = "Solika 5"; string fridgeDesc = "BEKO"; _fridge = new Fridge(fridgeName, fridgeAddress, fridgeDesc); _user = new User("Dario", "*****@*****.**"); _fridge.AddUser(_user); _category = new Category("Warzywa"); }
public void Fridge_AddSameUser_ShouldThrowDomainException() { _user = new User(userName, userEmail); _fridge.AddUser(_user); Assert.Throws(typeof(DomainException), () => _fridge.AddUser(_user)); }