示例#1
0
        public void AddFacilityReturnToIndex()
        {
            //Setup
            //Act
            var actionResult = facilityController.Create(new FacilityIndexViewModel
            {
                CloseAt  = new TimeSpan(22, 0, 0),
                Id       = 0,
                Name     = "Test",
                OpensAt  = new TimeSpan(10, 0, 0),
                IsActive = true,
                Price    = 0
            });

            //Verify
            Assert.True(((RedirectToActionResult)actionResult).ActionName == nameof(facilityController.Index));
        }