コード例 #1
0
        public async Task Edit_ReturnsHttpNotFoundWhenManagerIdNotFound()
        {
            //Arrange
            int AttendeeID = 4;
            var dbContext  = await GetDatabaseContext();

            var managersController = new ManagersController(dbContext);

            //Act
            var result = await managersController.Edit(AttendeeID);

            //Assert
            Assert.IsType <NotFoundResult>(result);
        }