Esempio n. 1
0
        public void GetAllRsvps_NoProblems_CallsEntityWrapperGetAllRsvps()
        {
            // setup

            // action
            _getHelper.GetAllRsvps();

            // assert
            _entityWrapper.Received().GetAllRsvps();
        }
Esempio n. 2
0
        public void AddRsvp_CorrectData_CallingEntityWrapperAddRsvpItem()
        {
            // setup
            var rsvp = new RSVP {
                Name = "Mister Test", Email = "*****@*****.**"
            };

            // action
            _postHelper.AddRsvp(rsvp);

            // assert
            _entityWrapper.Received().AddRsvpItem(Arg.Any <RSVP>());
        }