public void Execute_MeetingRoomChangesIsSavedToDatabase() { var command = new UpdateMeetingRoomCommand(_database.Object, _factory); command.Execute(_model); _database.Verify(x => x.Save(), Times.Once); }
public void Execute_MeetingRoomIsUpdatedToDatabase() { var command = new UpdateMeetingRoomCommand(_database.Object, _factory); command.Execute(_model); _meetingRooms.Verify(x => x.Add(It.IsAny <MeetingRoom>()), Times.Once); }