public void Execute_DatabaseIsSavedWithChanges() { var command = new DeleteMeetingRoomCommand(_database.Object); command.Execute(_model); _database.Verify(x => x.Save(), Times.Once); }
public void Execute_MeetingRoomIsDeletedFromDatabase() { var command = new DeleteMeetingRoomCommand(_database.Object); command.Execute(_model); _meetingRooms.Verify(x => x.Remove(It.IsAny <MeetingRoom>()), Times.Once); }