public void Create_ShouldExpectedChanges()
        {
            //Given
            var room = new MovieRoom
            {
                Name  = "Room 3D",
                Seats = 50
            };
            var expectedChanges = 1;

            //When
            var changes = _movieRoomService.Create(room);

            //Then
            Assert.Equal(expectedChanges, changes);
        }
Esempio n. 2
0
 private void SeedMovieRooms(IMovieRoomService movieRoomService, int count = 5)
 {
     for (int i = 1; i <= count; i++)
     {
         movieRoomService.Create(new MovieRoom()
         {
             Name  = "Room " + i,
             Seats = 50 + i
         });
     }
 }