예제 #1
0
        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");
        }
예제 #2
0
        public void Fridge_AddSameUser_ShouldThrowDomainException()
        {
            _user = new User(userName, userEmail);
            _fridge.AddUser(_user);

            Assert.Throws(typeof(DomainException), () => _fridge.AddUser(_user));
        }