コード例 #1
0
        public void Remove_Seat_ShouldNotDelete()
        {
            //Arrange
            var seatReservationDataContext = new InMemorySeatReservationDataContext("SeatRemoveNot");
            var testDB = new TestDataset1();

            testDB.Load(seatReservationDataContext);
            var testData = "ABC";

            //Act
            var seatAdd = new SeatRemove(seatReservationDataContext).Remove(testData);

            //Assert
            Assert.Equal(0, seatAdd);
        }
コード例 #2
0
        public void Remove_Seat_ShouldPass()
        {
            //Arrange
            var seatReservationDataContext = new InMemorySeatReservationDataContext("SeatRemove");
            var testDB = new TestDataset1();

            testDB.Load(seatReservationDataContext);
            var testData = "101010";

            //Act
            var seatAdd = new SeatRemove(seatReservationDataContext).Remove(testData);

            //Assert
            Assert.True(seatAdd > 0);
        }